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


a = 10
b = 5
c = a > b and b < a or a == b
print(c)

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