Day 16_100 Days Python Challenge

Bug description:
The break statement in the proposed solution looks only for “miss” but not for “Miss” as well. If you enter “Miss” the program congratulates for the correct answer but does not break the while loop.

Expected vs Current Behavior:
The break statement should look for “miss” and for “Miss”.

Proposal for answer code:

print("Welcome to Name the Song Lyric")
print("Figure out the missing word as quickly as you can!")

counter = 1
while True:
  lyrics = input("I don't wanna ______ a thing. ")
  if lyrics == "miss" or lyrics == "Miss":
    print("You got it!")
    print("Nope! Try again!")
    counter +=1
print("Thanks for playing!")

print("You got the correct lyrics in", counter, "attempt(s).")

Steps to reproduce:

Bug appears at this link:

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0

Replit Profile:

A post was merged into an existing topic: Day 016 - Project 16 : Make It Stop