The code below is supposed to print each letter of a word from the input on a new line if this letter is not 'a'. Unfortunately, the SyntaxError is raised. Analyze the code and correct some errors!
Built-in exceptions
Something went wrong
Report a typo
Sample Input 1:
catSample Output 1:
c
tWrite a program in Python 3
word = input()
for letter in word
if letter != 'a'
print(letter)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.