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