Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
Start with an empty list. Repeatedly ask for a song title (string). If the user enters an empty string (just presses Enter), stop. Otherwise append the title.
Finally print how many songs there are and list them with a number: 1. Title, 2. Title, …
Skills: append, while or while True with break, empty string check (== "").