Level 9 : Identify the error in this code


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

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