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