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