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