Keyboard shortcuts

Press ← or β†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Challenge 4

While loops

  • Create a program that allows the user to continuously enter a word, prints the last letter of the word, and the program only ends once they type the word β€œend”

  • Create a program that allows the user to enter a number. Then, a segment of code containing a print statement is repeated their number amount of times, using a while loop


For Loops

  • Create a program that allows the user to enter a word, and prints each vowel in the world

  • Then alter the program to print how many vowels are in the word


Contributors: