Level 9 : Identify the error in this code


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

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