Skip to main content

Python program to count words in your paragraph/txt

 First input the txt or easy in which you want to count word then input the word you want to count

x = input('input the paragraph: ')
y = input('input the word you want to count: ')
print(x.count(y))

Comments

Popular posts from this blog

weight converter KG - LBS

  weight = int(input('weight: ')) unit = input ("(L)bs or (K)g: ") if unit.upper() == "L":     converted = weight * 0.45     print(f"you are {converted} killos") else:     converted = weight / 0.45     print(f"you are {converted} pounds")

JupyterLab / Jupyter notebook important settings to make work flow easy

when you first start using Jupyter notebook you feel it difficult in comparison to VS code. but believe me it's not that hard. Today i'm going to show you that how can you make your coding experience batter on jupyter without any extension  1) go to settings and click auto close brackets it will automatically close (), '',""