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