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