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