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