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