Level 10 : What will be the Output of following code?


q = [1,2,3,4]
p =q.cpoy()
p[1] = 10
print(q)

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