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