Using a range loop num set in python 3.7 and putting them all on the same line using the end=''
After that though I need on a separate line a print statement but the end=''
stops it from appearing on a separate line when I run the module. Any way to work around that? Or even put the range loop on the same line without using the end=''
expression?
Expected Output
3,6,9,12,15,18,21,24,27,30
That's all folks!
My code:
#uses loop from 3-30 counting by 3's
for num in range(3, 33, 3):
print (num, end=' ')
#print statement
print("That's all folks!")