djdj - HTMLify profile

djdj's Profile Picture

djdj

470 Files

102984 Views

Latest files of /djdj/python

Python - String Methods djdj/python/string.py
203 Views
0 Comments
name = "Dj UPraiTY"
sub = "Dj"
print(len(name)) #length of the string
print(name[0:5]) #display string starting position to given position

print(str.capitalize(name)) #only first character is uppercase baki ke lowercase
print(str.lower(name)) #all string character convert to lowercase
print(str.upper(name)) # all string character convert to uppercase