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