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