Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import *
- import tkinter.simpledialog
- import tkinter.messagebox
- root = Tk()
- w = Label(root, text="Root Beer")
- w.pack()
- # This code will output the song, 10 Bottles of Root Beer.
- # Example:
- #
- # "10 bottles of root beer on the wall, 10 bottles of root beer, take one down, pass it around,
- # 9 bottles of root beer on the wall."
- #
- # and then it counts down until there are no bottles of root beer. You have to fill
- # in the code to make it work.
- #1 You need a for loop that starts at 10 and counts down to 1.
- for:
- #2 Here you need to output the message about the bottles of soda from above.
- #keep in mind that i is the current number of bottles and (i-1) is one less
- tkinter.messagebox.showinfo("Bottles of Root Beer","")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement