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


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

Author: Devakanth | Tags: operator | 1736+ Python FAQs | Share
pseudocode | mapping-function | expand-tab | destructor | keyword | floating-point-precision | function-and-scope | function | decorator | escape-operator | virtual-environment | multiple-inheritance | file-handling | string-method | mutable | async | name-mangling | string-concatenation | oop | choice | application | statement | control-flow | multithreading | lambda | decimal | string-iteration | data-structures | boolean | implementation | global-variable | operators | static-method | indentation | regular-expression | asyncio | mathematics | set-operation | library | exception | goto-function | set | inheritance | operator-or | polymorphism | math | syntax | class-and-object | raise | conditional-statement | list-vs-tuple | context-manager | memory | methods | loop-control | parameter | else-statement | boolean-and-non-boolean | __future__ | mysql | access-modifier | factorial-function | comparison | iterable | object-attribute | python | enumerate() | init | functions | logical-operation | namespace | assignment-operator | generator | operator | touples | python-module | mathematical-function | min-function | import-method | string-method | input-function | string-slicing | __init_subclass__ | numeric | string-formatting | encoding | class-and-instance-variable | control-flow | stack | design-principle | string-formatting | global | file_handling | virtual-environment | postfix | format | comprehension | recursion | complex-number | copy | data-structure | built-in | zfill-function | package-management | comment | string | pandas | return-statement | module | complex | sys | basic | descriptors | print | range | string-manipulation | list-method | fabs-function | python_version | indexing | bitwise-operator | dictionaries | multiprocessing | append | list-join | error-handling | pickling-&-unpickling | magic-method | bitwise-operator | syntaxerror | built-in-function | type_conversion | overflow | python-history | feature | round | join | default-mutable-argument | docstring | objects | odd-number | precedence | arithmetic-expression | math-copysign | command-line-parsing | operator-and | loop | collection | __all__-attribute | while-else-loop | global-keyword | input-function | update | method | global-variable | version | while-and-for-loop | data_structure | inherit | typeerror | constructor | class | namedtuple | oops | call | memory-management | datetime | assert | version-check | data-type | shallow-copy | random-function | tuple-unpacking | split | iterator | regex | expression | turtle | generators-in-python | compute | min-max-function | recurssion | tuple | list-comprehension | binary-operation | conversion | filter-function | asyncio-module | interpreter | collections | lists | yield | scientific-notation | logical-operator | sorted | counter | syntax-error | max-min | operator-overloading | swapping | conditional-statement | immutability | installation | threading | list-mutation | random | array | while-loop | immutable-data-type | sys-module | for | input | slice | slicing | exponentiation | string-slicing | sum() | loops | classes | debugging | list-indexing | condition | sorting | binary | matrix | zip-function | head-and-tail | zip | python-django | identifier | rollback | def | data-type | file-handling | lambda-function | type-conversion | counter-function | invalid-list | matrix-list-comprehension | logical-operator | frozenset | map-function | id-function | functional-programming | control-statement | attribute | center | match | precedence-and-associativity | python-repl | bitwise | dictionary | data-structure | deep-copy | arithmetic-operation | identity-operator | variable | integer | thread | matplotlib | list-slicing | staticmethod | exception-handling | lambdas | dicts | round-function | type-conversion | exception-handling | software-design | list-comprehension | datatype | gil | encapsulation | int | sum-function | built-in-function | list | formal-and-actual-parameter | pep | nested-loop | error | function-argument | heap-memory | higher-order-function | file | benefit | print-statement | class-and-inheritance | operand | with-statement | filter | list-operation | generators | operations | numpy | identity-operator | syntax-error ...