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