PYer (2743)

Open in full screen: Timer
I coded this timer. You can type in the amount of minutes, and the amount of seconds you want it to last. It prints the numbers in ASCII art, and the color is randomly generated to make it more appealing. "TIMES UP!!!" is displayed when it is over. amasad told me about bell codes and now it makes a beeping sound! Thank you, and please upvote if you like this! Thanks again!

You are viewing a single comment. View All
HappyFakeboulde (218)

@PYer It's a feature of python in which you have a string, the multiplication operator (*), and an integer. It's an expression with the value of the string, repeated a number of times defined by the number, as a new string, e.g. "hfb" * 3 == "hfbhfbhfb". There's also a similar technique with tuples and lists. For another example, see line 27 of my modified timer program.