|
|
|
|
|
by gadgetoid
3080 days ago
|
|
This is absolutely what they're doing. It condenses quite easily even to: import random
import time
while True:
col = random.randint(30, 48)
print("\x1b[{}m{}\x1b[0m".format(col, "Hello World"))
time.sleep(1)
Which is still pretty obtuse, but the "random colours" task seems hand-picked to penalize Python.It neglects to mention that Fuze has virtually no utility beyond an educational curio, too, versus Python which is used for many, many things. |
|
More appropriate would be to compare with some Python programming kit that had similar graphic environment abstractions:
But even then, unless you wrap Python with something that handles imports/globals/etc for you (a la Processing), doing this in Python is still going to take a bunch of extra gunk.