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