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