News

#Write a Python program to count occurrences of a substring in a string. string=input("Enter a string : ") #get value from user csubstring=string.split() #split a ...
2. Find and print the length of a given string. string = "Python is fun!" length_of_string = len(string) print("Length of the string:", length_of_string) 3. Convert a ...