Level 9 : Identify the error in this code


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

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