Level 10 : What is the output of the below python code?


import re

pattern = '^a...s$'
test_string = 'abyuiss'
result = re.match(pattern, test_string)
print(result)

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