I got this code
for n in range(10,20):
print(n, end='')
print(', ', end='')
I get this:
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
How do I remove the last comma? Have been searching for like 30 minutes with no luck. Are there any easy command I can just put last in the code to remove the last character?
Edit:
Solution: There is different ways to solve this but the assignment was to add a code, not make a new one so this solution worked best for me.
for n in range(10,20):
print(n, end='')
if n >= 19:
break
print(', ', end='')