Level 5 : What will be the output of the below python code


a = 1 if 20 < 10 else 10
print (str(a))

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