Level 9 : Identify the error in this code


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

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