Level 9 : What is the output of the following program?


z = lambda x : x * x

print(z(6))

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