I am trying to output a string of charaters from one loop into an easygui.msgbox.
I tried running this code:
import easygui
n = 9
for i in range (9):
if i == n:
easygui.msgbox(str(i))
else:
easygui.msgbox(str(i)+",",)
But multiple windows open with one one cycle of the loop. And when i press okay the next number appears.
0,
But my desired results are this in one mesagebox.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9