Write a program to find a given character in a string and print its position


Topic: Write a program to find a given character in a string and print its position

Solution

a= "Hello World"
x= a.find("r")
print(x)



List all Python Programs