Level 9 : Identify the error in this code


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

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