Level 9 : What will be the output of the following code?


a = [5,[1,2]]
print(a*3)

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