\n (new line) is automatically added by the print statement. A way to avoid this is to end your expression with a comma.
If you want your fan to be on their own line, use:
print icons[I]+"\r",
\r represents a carriage return.
If you want your fan to be at the end of a non-empty line, use \b for the backspace character:
print icons[I]+"\b",
but be careful not to write anything after it except for fan symbols.
Since printing has some other features, you can go with a kshahar suggestion to use sys.stdout.write() .
source share