python strings

0

Python String Methods Part – 2

Program 1 # Program related string methods # s=”Hello\tFriends\tTata” # s=s.expandtabs(20) # print(s) # s=”Java is a simple language and i am learning Java and Java is Good Language” # s=s.replace(“Java”,”Python”) # print(s) #...

0

Python Strings

Program 1 # String methods # s=”dataflair indore” # s=s.upper() # print(type(s)) # print(type(s)) #print(id(s)) #print(s) # s=”TECH VIDVAN INDORE” # print(s.lower()) # s=input(“Enter A String”) # m=s.count(“D”) # print(m) # email=input(“Enter email id:...

0

Python Program on String Methods

In this article, we will delve into two Python programs that involve string manipulations and checks. These programs demonstrate the flexibility and power of Python when it comes to handling string data. The first...