Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- password = ("123")
- Username = (input("what is your username?: "))
- Password = (input("What is your password?: "))
- if Password == password: print("welcome", Username)
- else:
- print("incorrect")
- import sys
- sys.exit()
- import random
- music = [["Bugzy malone","drama","pain","run","mad"],["ed sheeran","perfect","happier","dive","photograph"]]
- randartist = random.randint(0,(len(music)-1))
- randsong = random.randint(1,(len(music[randartist])-1 ))
- artist = (music[randartist][0])
- song=(music[randartist][randsong])
- print(artist,song[0])
- Output=""
- guess=input("guess the song")
- score1 = 0
- for i in song.lower().split():
- Output=Output+i
- print(Output)
- if guess == Output:
- print("you get 3 points")
- score1 = score1 + 3
- else:
- print("one more chance")
- print(artist,song[0])
- Output2=""
- guess2=input("guess the song")
- for i in song.lower().split():
- Output2=Output2+i
- print(Output2)
- if guess2 == Output2:
- print("you get 1 point")
- score1 = score1 + 1
- print(score1)
- for i in song.lower().split():
- Output=Output+i
- print(Output)
- if guess == Output:
- print("you get 3 points")
- score1 = score1 + 3
- if guess == Output:
- import sys
- sys.exit()
- else:
- print("one more chance")
- print(artist,song[0])
- Output2=""
- guess2=input("guess the song")
- for i in song.lower().split():
- Output2=Output2+i
- print(Output2)
- if guess2 == Output2:
- print("you get 1 point")
- score1 = score1 + 1
- print(score1)
- #import sys
- #password = ("123")
- #Username = (input("what is your username?: "))
- #Password = (input("What is your password?: "))
- #if Password == password: print("welcome", username)
- #else:
- # print("incorrect")
- # import sys
- # sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement