Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sentence = input("Please enter some text: ")
- sentence = str(sentence)
- counter = 0
- for i in sentence:
- if i == "a" or i == "A":
- counter += 1
- print("Amount of A's in entered sentence: " +str(counter))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement