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