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