Level 3 : What is the output of the following code?


x = 6
y = 2
print(x ** y)
print(x // y)

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