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