Level 1 : Which of the following would give a syntax error?

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