Level 9 : Identify the error in this code


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

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