Level 9 : Which type of copy is shown in the following python code?


l1=[[10, 20], [30, 40], [50, 60]]
ls=list(l1)
ls
[[10, 20], [30, 40], [50, 60]]

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