Level 3 : What are the values of the following Python expressions?


2**(3**2)
(2**3)**2
2**3**2

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