Advertisement
MrsMcLead

ECS rootbeer

Nov 22nd, 2013
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.77 KB | None | 0 0
  1. from Tkinter import *
  2. import tkinter.simpledialog
  3. import tkinter.messagebox
  4.  
  5. root = Tk()
  6. w = Label(root, text="Root Beer")
  7. w.pack()
  8.  
  9. # This code will output the song, 10 Bottles of Root Beer.  
  10. #   Example:
  11. #
  12. #   "10 bottles of root beer on the wall, 10 bottles of root beer, take one down, pass it around,
  13. #        9 bottles of root beer on the wall."
  14. #
  15. # and then it counts down until there are no bottles of root beer.  You have to fill
  16. # in the code to make it work.
  17.  
  18.  
  19. #1  You need a for loop that starts at 10 and counts down to 1.
  20. for:
  21.     #2 Here you need to output the message about the bottles of soda from above.
  22.     #keep in mind that i is the current number of bottles and (i-1) is one less        
  23.     tkinter.messagebox.showinfo("Bottles of Root Beer","")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement