text_plain_output_1.png
str1 = 'Welcome2'
print('the alphabetic letter is:', str1.isalpha())
print('the lowercase letter is:', str1.islower())
print('the uppercase letter is:', str1.isupper())
print(str1, 'the alphanumeric is:', str1.isalnum())
str2 = 'Hello World!'
print('the alphabetic letter is:', str2.isalpha())
print('the lowercase letter is:', str2.islower())
print('the uppercase letter is:', str2.isupper())
str3 = 'Now is the best time ever!'
print('the alphabetic letter is:', str1.isalpha())
print('the lowercase letter is:', str1.islower())
print('the uppercase letter is:', str1.isupper())
print('the sentence starts with:', str3.startswith('Now'))
print('the sentence ends with:', str3.endswith('Now'))
str4 = '500017'
print('the alphanumeric is:', str4.isalnum())
print('the digits is:', str4.isdigit())
str5 = 'Iphone 6'
print('the alphanumeric is:', str5.isalnum())
print('the digits is:', str5.isdigit())