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