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