Level 1 : What will be the output of the following code?


x = 10
if x > 5:
    print("Greater")

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