Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Python

Knowledge base — Python

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 583

Python

re.fullmatch

Requires the regular expression to consume the entire string.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

re.match

Attempts a match at the beginning of the string.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

re.Match.group — retrieving matched groups

The re.Match.group method retrieves the whole match or selected capturing groups by their number or name.

Basic · Python 3.14; repository image, production runtime not attested
Python

re.Match.groupdict — a dictionary of named groups

re.Match.groupdict returns a dictionary of named capture groups. Its default parameter supplies the value for groups that did not participate in the match.

Basic · Python 3.14; repository image, production runtime not attested
Python

re.Pattern

A compiled pattern stores the expression and flags and exposes methods for repeated searches.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

re.search

Scans for the first position at which the pattern matches.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

re.split

Splits input at regular-expression matches.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

re.sub

Replaces non-overlapping regex matches using a replacement template with group references or a callable.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

re.subn

Returns transformed text together with the number of substitutions performed.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.add

Inserts one hashable object into a set.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.clear

Removes every element from the same mutable set.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.difference

Creates a set containing members of the first set absent from the other input.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.discard

Removes a member if it is present.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.intersection

Creates a set of members common to the supplied inputs.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.isdisjoint

Tests whether the set and another iterable have no common member.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.issubset

Tests whether every member occurs in the other iterable.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.issuperset

Tests whether the receiver contains every member of the other iterable.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.pop

Removes and returns an arbitrary set member.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.remove

Removes a required member from a set.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.symmetric_difference

Builds the set of members appearing in exactly one of the two inputs.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.union

Creates a set of all members present in either input.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

set.update

Adds members of an iterable directly to the receiving set.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

str.capitalize

Makes the first character titlecase and the rest lowercase.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

str.casefold

Produces a Unicode case-folded string for caseless comparison.

Intermediate · Python 3.14; repository image, production runtime not attested