Checking a String in Python

istitleisupperislowerisalphaisalnumisdigitisnumericisspace
Задание 1

Given a string:

pythontxt = 'Abcde'

Make sure it starts with a capital letter.

Задание 2

Given a list:

pythonlst = ['User1', 'User2', 'user3', 'User4']

Check if each of its elements starts with a capital letter.

Задание 3

Given a string:

pythontxt = 'ABCDE'

Make sure all of its letters are uppercase.

Задание 4

Given a string:

pythontxt = 'abcde'

Make sure all of its letters are lowercase.

Задание 5

Given a string:

pythontxt = 'abcde'

Check that it consists only of letters.

Задание 6

Given a string:

pythontxt = '12345'

Check that it consists only of numbers.

Задание 7

Given a string:

pythontxt = 'Ⅷ'

Check that it consists only of numbers.

Задание 8

Given a string:

pythontxt = '12345abc'

Make sure it only contains letters and numbers.

Задание 9

Given a string:

pythontxt = 'a1b2c3d '

Make sure it only contains letters and numbers.

Задание 10

Given a string:

pythontxt = ' '

Check if it consists only of spaces.

Задание 11

Given a list:

pythonlst = ['a', 'b', ' ', 'c', '']

Check if it contains elements that contain only spaces.