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