diff --git a/Python/Count words in a sentence b/Python/Count words in a sentence new file mode 100644 index 0000000..1d26d8c --- /dev/null +++ b/Python/Count words in a sentence @@ -0,0 +1,3 @@ +text = input("Enter a sentence ") +res = len(text.split()) +print("The number of words in this sentence is ", res)