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