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