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