Level 1 : What will be the output of the following Python code?


re.match('sp(.*)am', 'spam')

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