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