Level 9 : Identify the error in this code


x = [1, 2, 3];
print(x)

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