Level 10 : What is the output of the following code?


y = 456
for i in y:
   print(i)

Author: SarojiniD | Tags: typeerror | 1859+ Python FAQs | Share
list-method | complex | handling-missing-values-(fillna,-dropna) | joining-and-merging-dataframes | datetime.date,-datetime.time,-datetime.datetime | boolean-masking | functions | access-modifier | expand-tab | assignment-operator | list | list-mutation | context-manager | global-variable | higher-order-function | default-mutable-argument | exception | function | file | installation | loop-control | working-with-binary-files-(rb,-wb) | logical-operation | turtle | import-method | list-methods-and-slicing | memory | data-type-conversions | fabs-function | comparison | max-min | __init_subclass__ | data-type | loop | walking-through-directories-using-os.walk() | anchors-(^,-$) | while-and-for-loop | indexing | thread | lambda-functions | multiple-inheritance | identifier | operator-or | min-function | library | id-function | parsing-with-strptime | numeric | formatting-with-strftime | decorator | loops | binary-operation | type_conversion | key-value-pairs | thread-synchronization | invalid-list | file-handling | string-formatting | sorting | data-type | sum-function | dictionary-methods | iterator | using-assertions-(assertequal,-assertraises) | attribute | generator | sum() | counter | zip-function | python | logical-operators | match | defining-functions | working-with-dates-and-times | precedence | methods | creating-custom-modules | numpy | application | indexing:-loc-vs-iloc | filtering-and-indexing | factorial-function | raise-statement | encapsulation | compute | formal-and-actual-parameter | built-in-function | recursion | init | polymorphism | operations | matrix | boolean-and-non-boolean | overflow | boolean | mapping-function | input | conditional-statements | operator-overloading | python-operators | encoding | pickling--unpickling | data-types | append | string-concatenation | frozenset | __future__ | conditional-statement | bitwise-operator | shallow-copy | lambda | working-with-temporary-files-using-tempfile | loop-control-statements | complex-number | why-use-multiprocessing-over-threading?-(gil) | string-slicing | escape-operator | list-join | stack | yield | built-in-function | identity-operator | overriding-methods | list-operation | collections | regular-expressions | range | map-function | name-mangling | mathematical-function | postfix | creating-and-starting-threads | strings | input-function | multiprocessing | tuples | keyword | opening-files-(open()) | global-keyword | control-statement | sys-module | format | decimal | assert | functional-programming | introduction-to-threads | syntax-error | immutability | dictionary-comprehensions | lambda-function | assignment-operators | split | version-check | advanced-file-operations | difference-between-threads-and-processes | enumerate() | async | string-method | operators | using-yield-in-functions | data-structures | booleans | using-else-and-finally | swapping | python-django | literal-characters-and-special-characters | control-flow | string-iteration | constructor | threading | error | interpreter | namedtuple | nested-loop | def | file-handling | head-and-tail | dataframe-and-series-objects | bitwise | mutable | indentation | deep-copy | odd-number | exception-handling | multiple-except-blocks | raise | built-in | oops | arbitrary-arguments-(*args,-**kwargs) | method | rollback | filter-function | membership-operators-(in,-not-in) | single-inheritance | choice | using-os-and-pathlib-modules | reading-and-writing-files | recurssion | immutable-data-type | class | python-repl | while-loops | reading:-read(),-readline(),-readlines() | python-history | function-and-scope | namespace | pseudocode | software-design | default-arguments | package-management | magic-method | set-operation | virtual-environment | thread-safe-data-structures-(queue.queue) | else | class-and-instance-variable | memory-management | benefit | asyncio-module | min-max-function | error-handling | identity-operator | mysql | lists | floating-point-precision | using-the-threading-module | comprehension | docstring | exception-handling | operator-and | __all__-attribute | design-principle | print-statement | datetime | sorting-and-ranking | functional-programming | reading-and-writing-large-files-efficiently | exponentiation | copy | managing-directories-with-os-and-shutil | sets | zfill-function | list-slicing | inherit | using-join()-and-is_alive()-methods | arithmetic-operation | print | module | integer | file_handling | slice | statement | class-decorators | gil | directory-operations | input-function | lambdas | version | condition | intering | return-statement | oop | list,-set,-and-dictionary-comprehensions | error-handling | command-line-parsing | round | python-module | staticmethod | type-conversion-and-casting | pass | parameter | logical-operator | introduction-to-python | round-function | while-loop | control-flow | class-and-inheritance | conditional-statement | class-and-object | global | data-structure | python-syntax-and-structure | aggregating-data-with-functools.reduce() | list-comprehension | pep | random | regex | destructor | heap-memory | operand | feature | tuple-unpacking | call | goto-function | typeerror | identity-operators-(is,-is-not) | descriptors | objects | mathematics | string-manipulation | matrix-list-comprehension | dicts | logical-operator | list-comprehension | list-indexing | join | python_version | multiple-inheritance | arithmetic-expression | int | scientific-notation | matplotlib | multithreading | object-attribute | while-else-loop | array | conversion | math-copysign | unit-testing | sorted | precedence-and-associativity | quantifiers-(*,-+,-?,-{}) | implementation | math | data_structure | list-vs-tuple | inheritance | pandas | data-structure | integers | using-map()-for-transformations | method-overloading | random-function | with-statement | test-discovery | collection | basic | binary | string-formatting | global-variable | variable | type-conversion | counter-function | comment | string-method | dictionaries | bitwise-operator | time-series-with-pandas | using-lists-as-stacks | iterators | static-method | debugging | dictionary | set | filter | list-comprehensions | datatype | built-in-modules | introduction-to-multiprocessing | iterable | touples | syntax | tuple-methods | asyncio | classes | tuple | center | syntaxerror | type-conversion | slicing | working-with-file-paths | sys | writing:-write(),-writelines() | function-argument | zip | string-methods | update | generators-in-python | virtual-environment | else-statement | expression | string-slicing | generators | regular-expression | floats | syntax-error | string | operator | for | data-structures-in-python ...