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