Level 1 : What is output of the following code?


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

Author: anusha | Tags: operator | 1736+ Python FAQs | Share
global-variable | immutable-data-type | python-history | loop-control | gil | python | comprehension | tuple | control-flow | logical-operator | collections | yield | sum-function | formal-and-actual-parameter | feature | round | staticmethod | def | mathematical-function | oop | numpy | boolean | functions | package-management | matplotlib | string-concatenation | max-min | regex | loops | higher-order-function | destructor | while-else-loop | recurssion | library | control-flow | exponentiation | pep | mysql | binary-operation | shallow-copy | typeerror | boolean-and-non-boolean | iterator | sys | built-in-function | join | precedence-and-associativity | slicing | datetime | loop | stack | command-line-parsing | class-and-object | identity-operator | binary | class-and-instance-variable | factorial-function | class | return-statement | identity-operator | update | version | lists | matrix-list-comprehension | namespace | docstring | design-principle | methods | lambda | built-in-function | overflow | file-handling | conditional-statement | assignment-operator | classes | while-loop | turtle | function | input | floating-point-precision | type-conversion | counter-function | arithmetic-operation | input-function | error-handling | zfill-function | copy | software-design | rollback | inheritance | python-repl | virtual-environment | escape-operator | global-variable | string-method | sum() | python_version | id-function | odd-number | file_handling | list-operation | list-method | print-statement | string | data-type | asyncio-module | data-structure | data-structure | type-conversion | complex | matrix | default-mutable-argument | list-vs-tuple | constructor | data-structures | deep-copy | append | data-type | file-handling | functional-programming | file | memory | syntaxerror | choice | indexing | round-function | mathematics | datatype | list-comprehension | goto-function | tuple-unpacking | bitwise-operator | __all__-attribute | string-formatting | math-copysign | built-in | variable | string-method | exception-handling | range | dicts | swapping | complex-number | string-slicing | inherit | head-and-tail | string-formatting | set | attribute | list | type_conversion | generator | enumerate() | min-max-function | exception-handling | for | mapping-function | pandas | operations | syntax-error | asyncio | fabs-function | multiple-inheritance | min-function | parameter | virtual-environment | zip | print | conversion | indentation | statement | counter | slice | pseudocode | random-function | map-function | dictionary | collection | invalid-list | list-comprehension | format | logical-operation | objects | while-and-for-loop | installation | magic-method | benefit | multiprocessing | int | lambda-function | keyword | exception | filter-function | multithreading | bitwise-operator | application | bitwise | expression | list-join | integer | else-statement | arithmetic-expression | interpreter | encoding | iterable | sorting | oops | center | method | filter | async | assert | operators | generators | memory-management | threading | conditional-statement | pickling-&-unpickling | operator | match | set-operation | version-check | sorted | syntax-error | namedtuple | immutability | static-method | nested-loop | recursion | frozenset | logical-operator | object-attribute | module | scientific-notation | split | access-modifier | list-mutation | control-statement | call | data_structure | condition | touples | with-statement | function-and-scope | debugging | operator-overloading | implementation | python-django | polymorphism | operator-or | basic | class-and-inheritance | __future__ | random | error | heap-memory | raise | list-indexing | regular-expression | generators-in-python | thread | init | python-module | operator-and | mutable | array | comparison | dictionaries | numeric | string-manipulation | list-slicing | identifier | lambdas | string-slicing | function-argument | math | postfix | global | expand-tab | syntax | name-mangling | operand | sys-module | comment | decimal | input-function | precedence | descriptors | import-method | context-manager | __init_subclass__ | decorator | string-iteration | zip-function | global-keyword | encapsulation | compute ...