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