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