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