Level 10 : What will be the output of the following Python code?


for i in range(int(float('inf'))):
    print (i)

Author: SarojiniD | Tags: exception | 1736+ Python FAQs | Share
center | oops | mathematics | yield | class-and-object | matrix | function-argument | input-function | random-function | classes | complex-number | map-function | id-function | boolean-and-non-boolean | control-statement | function-and-scope | matrix-list-comprehension | destructor | dictionary | class-and-instance-variable | function | turtle | list-comprehension | list-indexing | python | frozenset | pseudocode | min-function | input | version | exception | operators | asyncio-module | datetime | __all__-attribute | comparison | functional-programming | identity-operator | statement | arithmetic-expression | list | magic-method | raise | object-attribute | assert | exception-handling | regex | python-django | iterator | heap-memory | threading | data-structures | gil | scientific-notation | built-in-function | choice | min-max-function | objects | decorator | methods | encapsulation | asyncio | slice | data-type | math | max-min | operator-and | global-variable | docstring | compute | multithreading | boolean | factorial-function | else-statement | global-keyword | goto-function | expand-tab | list-comprehension | set-operation | loop | random | control-flow | regular-expression | module | constructor | collections | zip-function | numeric | import-method | counter | dictionaries | exception-handling | return-statement | conversion | type_conversion | sorted | type-conversion | command-line-parsing | formal-and-actual-parameter | __init_subclass__ | name-mangling | design-principle | global-variable | string-manipulation | string | python_version | logical-operation | memory-management | pep | generator | collection | bitwise-operator | indexing | interpreter | math-copysign | floating-point-precision | higher-order-function | join | conditional-statement | multiprocessing | string-iteration | filter | identifier | generators-in-python | string-method | string-slicing | datatype | identity-operator | comment | list-method | mapping-function | file_handling | library | enumerate() | recursion | def | lists | binary-operation | loop-control | integer | file-handling | syntaxerror | operator-overloading | error | type-conversion | arithmetic-operation | list-mutation | package-management | pickling-&-unpickling | nested-loop | update | assignment-operator | set | immutable-data-type | round | keyword | attribute | global | python-history | copy | thread | range | overflow | escape-operator | python-repl | lambda | error-handling | list-join | polymorphism | async | bitwise-operator | fabs-function | variable | operand | iterable | default-mutable-argument | multiple-inheritance | mysql | inherit | lambda-function | matplotlib | class-and-inheritance | feature | recurssion | touples | sys-module | decimal | print-statement | while-else-loop | zip | for | debugging | append | filter-function | precedence-and-associativity | file | version-check | installation | numpy | list-vs-tuple | input-function | control-flow | namedtuple | print | generators | syntax-error | condition | lambdas | exponentiation | sorting | descriptors | sys | shallow-copy | while-and-for-loop | operator-or | mutable | pandas | conditional-statement | rollback | sum-function | list-operation | logical-operator | built-in-function | tuple-unpacking | call | class | with-statement | software-design | operator | odd-number | swapping | data-structure | int | parameter | memory | python-module | string-concatenation | oop | string-formatting | list-slicing | logical-operator | complex | file-handling | inheritance | syntax | string-method | string-slicing | loops | array | slicing | bitwise | immutability | typeerror | staticmethod | dicts | virtual-environment | mathematical-function | encoding | while-loop | postfix | implementation | comprehension | round-function | method | expression | access-modifier | zfill-function | benefit | functions | head-and-tail | precedence | match | indentation | application | string-formatting | init | virtual-environment | binary | format | deep-copy | sum() | basic | built-in | namespace | operations | data-structure | stack | __future__ | split | invalid-list | counter-function | tuple | syntax-error | data_structure | static-method | data-type | context-manager ...