Yes I have made a new python code.
This time it is a 0 that bounces on imaginary walls. Please understand I'm a complete beginner so don't expect it to be good or anything. here it tis:
import pippy
bx = 5
by = 3
xc = 1
yc = 1
i = 1
bp = 0
while 0 == 0:
pippy.console.clear()
i = 1
while i < by:
print " "
i = i + 1
i = 1
bp = "0"
while i < bx:
bp = " " + bp
i = i + 1
print bp
bx = bx + xc
by = by + yc
if bx == 10:
xc = xc * -1
if bx == 1:
xc = xc * -1
if by == 1:
yc = yc * -1
if by == 5:
yc = yc * -1
pippy.wait()try it.
It may not work as i use something called pippy it is the same as python but has a different name so the importation may not work.
Offline
Is this 3.x or 2.x?
Offline
What version of python is it?
Offline