Level 1 : What is output of the following code?


x = 100
y = 50
print(x and y)

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