<filename>lesson06/monkey/str2.py<gh_stars>0

'''
.count
.format
.isdigit
.islower
.isupper
.lower
.upper
.join
.replace
.split
.startswith
.endswith
.strip
'''


s1 = 'www.51reboot.com'
# print(s1.count('ww'))

s2 = '100111a'
# if s2.isdigit():
#     int(s2)
# print(s2.isdigit())

s3 = 'ABCDd'

# print(s3.islower())
# print(s3.isupper())

# print(s3.lower())
# print(s3.upper())

# print(s3.replace('CD', 'e'))


# print(s1.startswith('w'))
# print(s1.endswith('com'))

s4 = ' www.51reboot. com '
print(s4.strip())
print(s4.lstrip())
print(s4.rstrip())
<filename>lesson06/monkey/str2.py<gh_stars>0

'''
.count
.format
.isdigit
.islower
.isupper
.lower
.upper
.join
.replace
.split
.startswith
.endswith
.strip
'''


s1 = 'www.51reboot.com'
# print(s1.count('ww'))

s2 = '100111a'
# if s2.isdigit():
#     int(s2)
# print(s2.isdigit())

s3 = 'ABCDd'

# print(s3.islower())
# print(s3.isupper())

# print(s3.lower())
# print(s3.upper())

# print(s3.replace('CD', 'e'))


# print(s1.startswith('w'))
# print(s1.endswith('com'))

s4 = ' www.51reboot. com '
print(s4.strip())
print(s4.lstrip())
print(s4.rstrip())
.count .format .isdigit .islower .isupper .lower .upper .join .replace .split .startswith .endswith .strip # print(s1.count('ww')) # if s2.isdigit(): #     int(s2) # print(s2.isdigit()) # print(s3.islower()) # print(s3.isupper()) # print(s3.lower()) # print(s3.upper()) # print(s3.replace('CD', 'e')) # print(s1.startswith('w')) # print(s1.endswith('com'))