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