Level 10 : what is the output of the following code?


x = 'Cup'
y = 'Coffee'
z = y-x
print(z)

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