Level 1 : What will be the output of the below python code?


x={1,2,3}
y={1,2}
y.ispropersubset(x)

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