Python program to count number of words entered Get link Facebook X Pinterest Email Other Apps - September 30, 2021 n=input("Enter String :")f=len(n)count=0for i in range(0,f): z=ord(n[i]) if z==32: count+=1print("Number of words : ",count+1) Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment