This is a very simple stopwatch. Please tell me if there are any bugs or improvements.
Pretty solid. You should learn about string concatenation, though. That'll come in handy for formatting it instead of just having it be vertical.
print("string1" + "string2")
will output something like:
You can use this to combine strings or other things that can be converted to strings. For example,
fav = 7 print("My favorite number is " + str(fav))
will print out
My favorite number is 7
And, you can concatenate more than just two things at once as well:
name = "Six" food = "potatoes" print("My name is " + name + " and I like to eat " + food)
will give you
My name is Six and I like to eat potatoes
@CodeABC123 Sorry, concatenation is a standard function in all programming languages, but I'm a little too used to the Java/C# way of doing it, so Python is a bit different than what I'm used to :)
You need to surround integers with the
str() function to turn it into a string before concatenation. See fixed code above.