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


m = re.search('a', 'The blue umbrella')
m.re.pattern

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