Skip to content

Latest commit

 

History

History
56 lines (48 loc) · 950 Bytes

File metadata and controls

56 lines (48 loc) · 950 Bytes

isupper

Description

Returns a Boolean stating whether the string is in UPPER CASE.

Syntax

str. isupper()

Return Value

bool

Time Complexity

#TODO

Remarks

For 8-bit strings, this method is locale-dependent. Returns False if string is empty.

Example

>>> ''.isupper()
False
>>> 'abc123'.isupper()
False
>>> 'abc'.isupper()
False
>>> '123'.isupper()
False
>>> 'Abc Def'.isupper()
False
>>> 'Abc def'.isupper()
False
>>> '!@#'.isupper()
False
>>> '   '.isupper()
False
>>> 'ABC'.isupper()
True

See Also

isalnum(), isalpha(), isdigit(), islower(), isspace(), istitle(), isupper()