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