I am new to python and trying to figure out how to make this program only take a string or character and then have it spell out said string/character. Unfortunately, when using the lines while word != str() or chr():
word = input("Enter a string or character...")
I am constantly prompted to "Enter a string or character" even when I inputted a string/character to begin with. How would I be able to go about fixing this so that the program takes a string and breaks out of the while loop so that it can spell whatever I typed in?
word = input("What is your word? ")
while word != str() or chr():
word = input("Enter a string or character...")
for char in word:
print(char)