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