Computer Science, asked by Akankshya5, 9 months ago

wap in python to modify a string such that all upper case characters will be lowercase n vice versa.

let the string be st ='He Is Well'
plz don't attempt it for free points. if u know the ans then attempt it.​

Answers

Answered by Anonymous
1

Answer:

In Python, isupper() is a built-in method used for string handling.

The isupper() methods returns “True” if all characters in the string are uppercase, Otherwise, It returns “False”.

This function is used to check if the argument contains any uppercase characters such as :

ABCDEFGHIJKLMNOPQRSTUVWXYZ

Syntax :

string.isupper()

Parameters:

isupper() does not take any parameters

Returns :

1.True- If all characters in the string are uppercase.

2.False- If the string contains 1 or more non-uppercase characters.

Examples:

Input : string = 'GEEKSFORGEEKS'

Output : True

Input : string = 'GeeksforGeeks'

Output : False

Errors And Exceptions

Similar questions