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