Advertisement
PandaGamerYT

Python rickroll.

May 31st, 2022
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import os
  2. import webbrowser as wb
  3. name = os.getlogin()
  4.  
  5. rickroll = input("Do you want to be rickrolled?\n")
  6. if rickroll.lower() == 'yes' or rickroll.lower() == 'Yes':
  7. wb.open_new_tab("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
  8. print("You have been rickrolled " + name + ".")
  9. else:
  10. print("Have not executed rickroll.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement