data = eval(input('Please enter a loud message (must be all caps): '))
while not data.isupper():
    print('Sorry, your response was not loud enough.')
data = eval(input('Please enter a loud message (must be all caps): '))
Asking the user for input until they give a valid response