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