Source Code
import string
a=input("Enter any string to converts first character to capital latter")
print("Capitalilsed string is ",string.capwords(a))
b=input("Enter any string to count the length")
print("length of string is ",len(b))
c=input("Enter any string to converts all char. as lower")
print("Capitalilsed string is ",c.lower())
d=input("Enter any string to converts all char. as upper")
print("Capitalilsed string is ",d.upper())
w = tuple(input("enter the touple"))
x = "#".join(w)
print(x)
OUTPUT
Enter any string to converts first character to capital latterram
Capitalilsed string is Ram
Enter any string to count the lengthGKC
length of string is 3
Enter any string to converts all char. as lowerGKC
Capitalilsed string is gkc
Enter any string to converts all char. as uppergkc
Capitalilsed string is GKC
enter the touplekrishna
k#r#i#s#h#n#a
No comments:
Post a Comment