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 | 1736+ Python FAQs | Share
global-keyword | syntaxerror | data-structure | variable | int | frozenset | input-function | pep | classes | arithmetic-operation | objects | touples | control-statement | import-method | python-repl | constructor | built-in-function | type_conversion | turtle | heap-memory | command-line-parsing | call | data_structure | operator-and | default-mutable-argument | decimal | print | list-comprehension | feature | bitwise-operator | generators-in-python | escape-operator | math-copysign | compute | assert | identity-operator | statement | condition | __all__-attribute | binary-operation | file-handling | complex | scientific-notation | destructor | sum() | multiple-inheritance | input-function | string-manipulation | name-mangling | postfix | data-type | loop | list-slicing | for | filter-function | yield | immutability | round-function | boolean-and-non-boolean | asyncio-module | exception-handling | global-variable | type-conversion | operator | list-operation | sorting | operator-overloading | __init_subclass__ | collection | data-structure | while-else-loop | while-and-for-loop | multithreading | id-function | syntax | integer | overflow | class | keyword | string-formatting | memory | logical-operation | list-join | formal-and-actual-parameter | async | enumerate() | boolean | print-statement | loop-control | type-conversion | lambdas | file_handling | deep-copy | arithmetic-expression | virtual-environment | comparison | benefit | design-principle | descriptors | pickling-&-unpickling | sys-module | syntax-error | basic | copy | sys | function-and-scope | logical-operator | list-indexing | threading | string-method | operator-or | lambda | string | max-min | virtual-environment | gil | debugging | oop | asyncio | attribute | assignment-operator | data-structures | list-vs-tuple | binary | min-max-function | input | mysql | lambda-function | datetime | file | operand | string-slicing | built-in-function | file-handling | center | tuple | memory-management | complex-number | module | exception-handling | shallow-copy | identifier | access-modifier | return-statement | control-flow | set-operation | object-attribute | functional-programming | random-function | update | zip-function | __future__ | global-variable | zip | conversion | else-statement | implementation | bitwise | round | recursion | operators | python-django | class-and-inheritance | choice | decorator | generators | lists | stack | matrix-list-comprehension | mathematical-function | parameter | init | regular-expression | method | string-concatenation | identity-operator | function-argument | indexing | thread | numpy | error-handling | comprehension | methods | list-mutation | dicts | installation | collections | iterator | control-flow | string-formatting | head-and-tail | mathematics | rollback | comment | filter | fabs-function | join | counter-function | pandas | numeric | multiprocessing | floating-point-precision | exponentiation | range | version | dictionaries | polymorphism | list-comprehension | conditional-statement | namedtuple | version-check | array | exception | slicing | syntax-error | goto-function | functions | regex | while-loop | docstring | immutable-data-type | map-function | library | counter | encoding | iterable | dictionary | function | math | encapsulation | application | python-module | class-and-instance-variable | class-and-object | zfill-function | staticmethod | random | interpreter | recurssion | mapping-function | inherit | oops | list-method | factorial-function | package-management | expression | expand-tab | error | context-manager | data-type | string-slicing | swapping | indentation | mutable | sum-function | python-history | generator | min-function | datatype | slice | with-statement | matrix | built-in | set | invalid-list | format | magic-method | split | inheritance | operations | loops | precedence | def | raise | match | static-method | pseudocode | higher-order-function | odd-number | string-iteration | logical-operator | sorted | matplotlib | string-method | tuple-unpacking | software-design | typeerror | conditional-statement | append | python_version | bitwise-operator | list | global | python | namespace | nested-loop | precedence-and-associativity ...