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