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


import sys
sys.stdin.readline()
Sanfoundry

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