Level 5 : What will be the output of the following python code?


def printMax(a, b):
    if a > b:
        print(a, 'is maximum')
    elif a == b:
        print(a, 'is equal to', b)
    else:
        print(b, 'is maximum')
printMax(3, 4)

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