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