This is another classic. From the pages of Creative Computing, and the book I taught myself programming with, Games in BASIC, I present: Sine Wave:
#From the pages of Creative Computing, converted from BASIC to Python from math import * msg, s = "g", 1.5 while True: s = 1.5 if s >= 7.5 else s + 1/6 msg = "Creative" if msg[-1] == "g" else "Computing" print(" "*int(51 + (50*sin(s))),msg)