Advertisement
Guest User

Untitled

a guest
Oct 29th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. import sys
  2. password = ("123")
  3. Username = (input("what is your username?: "))
  4. Password = (input("What is your password?: "))
  5. if Password == password: print("welcome", Username)
  6.  
  7. else:
  8. print("incorrect")
  9. import sys
  10. sys.exit()
  11.  
  12. import random
  13. music = [["Bugzy malone","drama","pain","run","mad"],["ed sheeran","perfect","happier","dive","photograph"]]
  14. randartist = random.randint(0,(len(music)-1))
  15.  
  16. randsong = random.randint(1,(len(music[randartist])-1 ))
  17.  
  18.  
  19. artist = (music[randartist][0])
  20.  
  21. song=(music[randartist][randsong])
  22. print(artist,song[0])
  23. Output=""
  24. guess=input("guess the song")
  25.  
  26. score1 = 0
  27. for i in song.lower().split():
  28. Output=Output+i
  29. print(Output)
  30.  
  31. if guess == Output:
  32. print("you get 3 points")
  33. score1 = score1 + 3
  34.  
  35.  
  36. else:
  37. print("one more chance")
  38.  
  39.  
  40. print(artist,song[0])
  41. Output2=""
  42. guess2=input("guess the song")
  43. for i in song.lower().split():
  44. Output2=Output2+i
  45. print(Output2)
  46.  
  47.  
  48. if guess2 == Output2:
  49. print("you get 1 point")
  50. score1 = score1 + 1
  51. print(score1)
  52.  
  53. for i in song.lower().split():
  54. Output=Output+i
  55. print(Output)
  56.  
  57. if guess == Output:
  58. print("you get 3 points")
  59. score1 = score1 + 3
  60.  
  61.  
  62. if guess == Output:
  63. import sys
  64. sys.exit()
  65. else:
  66. print("one more chance")
  67.  
  68.  
  69. print(artist,song[0])
  70. Output2=""
  71. guess2=input("guess the song")
  72. for i in song.lower().split():
  73. Output2=Output2+i
  74. print(Output2)
  75.  
  76.  
  77. if guess2 == Output2:
  78. print("you get 1 point")
  79. score1 = score1 + 1
  80. print(score1)
  81.  
  82. #import sys
  83. #password = ("123")
  84. #Username = (input("what is your username?: "))
  85. #Password = (input("What is your password?: "))
  86. #if Password == password: print("welcome", username)
  87.  
  88. #else:
  89. # print("incorrect")
  90. # import sys
  91. # sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement