Level 9 : What is the output of the following code?


a, b = 10, 20
min = a < b and a or b
print(min)

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