[Tutor] python draw christman tree using loops
Danny Yoo
dyoo at hashcollision.org
Sun Oct 19 21:00:14 CEST 2014
In Java, System.out represents the standard output device. In Python,
there's a similar value in sys.stdout.
https://docs.python.org/2/library/sys.html#sys.stdout
In your Python program, you should be able to say:
import sys
at the beginning of your program, and then use:
sys.stdout.write(" ")
and:
sys.stdout.write("*")
with the expected results.
More information about the Tutor
mailing list