Level 10 : Identify the error in this code


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

Author: Devakanth | Tags: syntax-error | 1736+ Python FAQs | Share
counter | sorted | statement | file-handling | expression | typeerror | pep | string-formatting | input-function | syntax | def | design-principle | call | while-else-loop | python-history | staticmethod | deep-copy | copy | floating-point-precision | multiprocessing | shallow-copy | touples | access-modifier | control-flow | data-type | type-conversion | exception-handling | goto-function | round | constructor | static-method | operator-and | math-copysign | stack | math | format | decorator | comprehension | lambda | package-management | list-operation | string-manipulation | iterable | method | return-statement | conditional-statement | comment | gil | syntaxerror | control-flow | operator | exception-handling | bitwise-operator | functional-programming | version-check | descriptors | string-iteration | numpy | data-structures | int | comparison | list-indexing | init | max-min | yield | collections | tuple | global | conversion | type-conversion | multithreading | memory-management | zfill-function | pandas | mutable | class-and-instance-variable | pseudocode | match | generators | classes | python-repl | global-variable | data_structure | turtle | dictionary | overflow | odd-number | tuple-unpacking | variable | datetime | random-function | objects | namespace | lambdas | input-function | inheritance | control-statement | operators | expand-tab | string-concatenation | else-statement | asyncio | operator-or | list-vs-tuple | type_conversion | encoding | sorting | methods | virtual-environment | raise | feature | list-comprehension | functions | integer | zip-function | python-module | scientific-notation | join | string-method | collection | round-function | data-structure | asyncio-module | attribute | implementation | exception | string-formatting | identity-operator | mapping-function | function-and-scope | list-slicing | interpreter | built-in | application | software-design | for | docstring | complex-number | data-type | sum-function | class-and-object | string-method | installation | mysql | map-function | logical-operator | immutability | bitwise | range | encapsulation | center | input | context-manager | identifier | head-and-tail | data-structure | __future__ | library | file_handling | while-and-for-loop | list-join | sys | matrix | indentation | set | operand | precedence-and-associativity | slicing | loop | __all__-attribute | list-mutation | syntax-error | postfix | mathematics | factorial-function | array | regex | function | debugging | syntax-error | class | benefit | python-django | loop-control | generator | formal-and-actual-parameter | with-statement | error-handling | recursion | print | generators-in-python | swapping | object-attribute | sys-module | string-slicing | multiple-inheritance | choice | recurssion | indexing | string-slicing | memory | binary-operation | identity-operator | default-mutable-argument | lambda-function | complex | pickling-&-unpickling | random | print-statement | sum() | min-function | immutable-data-type | parameter | file-handling | python | version | keyword | nested-loop | update | oop | list-comprehension | error | global-keyword | decimal | frozenset | matrix-list-comprehension | destructor | module | async | list | condition | oops | higher-order-function | boolean | arithmetic-operation | precedence | min-max-function | datatype | matplotlib | while-loop | inherit | exponentiation | file | assignment-operator | logical-operator | virtual-environment | invalid-list | numeric | function-argument | namedtuple | magic-method | built-in-function | operations | escape-operator | polymorphism | fabs-function | lists | dicts | string | command-line-parsing | regular-expression | python_version | thread | list-method | iterator | assert | append | id-function | heap-memory | bitwise-operator | arithmetic-expression | logical-operation | enumerate() | basic | loops | boolean-and-non-boolean | class-and-inheritance | built-in-function | split | import-method | set-operation | compute | binary | filter-function | filter | mathematical-function | counter-function | dictionaries | __init_subclass__ | name-mangling | operator-overloading | threading | rollback | zip | slice | conditional-statement | global-variable ...