Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
Which of the following programs will print the word “alphabet” with each letter on its own line in the console?
word = "alphabet" for letter in word: print(letter)
word = "alphabet" for letter in alphabet: print(letter)
word = "alphabet" for letter in range (len(word)): print(letter)
word = "alphabet" for letter in range (len(word) - 1): print(letter)