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