I'm trying to print two output statements on the same line in Python 2.7 (or 3.4). The print statements don't come one after the other Like print a/ print b. My program takes 329 (say) and returns that value in words - three hundred twenty nine. So it will determine the 300 part and print it then the 29 part and print that.
if (main == hundreds[index]):
print hundreds_words[index]
for location in range (0, 10):
if (difference == twenties[location]):
print twenties_words[location]
I want to print the twenty nine on the same line as the three hundred. I suppose I could try and rig up a solution but I would like to know if Python has a procedure to do that.