Skip to main content

Command Palette

Search for a command to run...

DAY 16: 100Days of Python

Published
•1 min read•View as Markdown
I

I am Junior Data Scientist, using python for my analysis and modelling. I have few projects i have worked on and I'm loving this process. I'm open to working with anyone willing to help me through this process.

print("Welcome to My IntroLIne")
print()
print("Figure out the missing word as quickly as you can!")
print()

counter = 1
while True:
  lyrics = input("I dedicate my ______, to you my guy. ")
  if lyrics == "Life" or lyrics == "life":
    print("You got it!")
  else:
    print("Nope! Try again!")
    counter +=1
  if lyrics == "life":
    break
print("Thanks for playing!")

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