Level 9 : What is the output of the below code?


a=list((45,)*4)
print((45)*4)
print(a)

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