S
Scott W Dunning
I am having trouble figuring out how to remove spaces….
Assume variables exist for minutes and seconds. Each variable is an integer. How would you create a string in the format,
3:11
with no spaces. where 3 is minutes and 11 is seconds.
Obviously when I…
print minutes, “:”, seconds
I get 3 : 11
how can I get it to print with no spaces?
3:11
I’m VERY new to python and coding in general and this is a question for a class I’m in for a test review. So, the most basic answer would be appreciated.
Thanks for any help!!
Scott
Assume variables exist for minutes and seconds. Each variable is an integer. How would you create a string in the format,
3:11
with no spaces. where 3 is minutes and 11 is seconds.
Obviously when I…
print minutes, “:”, seconds
I get 3 : 11
how can I get it to print with no spaces?
3:11
I’m VERY new to python and coding in general and this is a question for a class I’m in for a test review. So, the most basic answer would be appreciated.
Thanks for any help!!
Scott