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