I would like to count how many times the words "invalid input " appears.
Here's my code. Please assist me.
while True:
number = input("Enter a number: ")
if number.isdigit():
print("The input is valid.")
else:
print("Invalid input.")
continue