Count Words In String Using Python | #shorts #pythonprogramming

preview_player
Показать описание
Hello Everyone
----------------------------------------------------------------------------
=======================
Do Four Things To Support Us:
1- Like
2- Comment
3- Share
4- Subscribe
=======================

Code:
----------------------------------------------------------------------------
# Program to count words in string using python

# Step 1: Take input from user
text = input("Enter your text: ")
print("You have entered the text: " + text)

# Step 2: Convert text into list

# Step 3: Find the length of the list
length = len(list)

# Step 4: Print the length
print("Total number of words are:" + str(length))
Рекомендации по теме
Комментарии
Автор

Thanks for watching. Comment if you need the exact code!

maniwebertechnologies
Автор

Thank you this is exactly what I needed

ianbruy
Автор

console py error show krwa raha hy ky input is not defined

ayeshaamin_
visit shbcf.ru