So whilst programming part of my homework, I decided to include validation within my program. However whilst adding in validation using the .isalpha()
command, when having a sentence with letters in it, I get the error message for when typing in numbers. Sorry, cant display all of my program but i have included a test bed of code I programmed to test whether the .isalpha()
command works, for validating whether only alphabetic letters are entered. Test data entered = one of several testing examples
word = input("enter a word")
if word.isalpha():
print("Word accepted")
else:
print("Invalid letters only")