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