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