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