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