if must_be_lowercase:
for i in user_input:
if not i.islower():
print("Letters must be lowercase! Try again!")
It's best to keep names like i or j to refer to indices.
Also, it's a small thing, but theyou can use str.islower() and str.isupper() methods can be used on the entire string at once, which means the loop is superfluous.