see the example:
from visual import *
def hello():
newyear=2010
sphere()
return newyear
my problem here is when I call function hello(), a sphere display window shows up, and also prints 2010, however if I close the display window, the program terminates. That is not what I want, how can I avoid this?
also, in my code, I will also use newyear, say b=hello(), but I dont want it show the sphere when I want use newyear, how can I do this?
Thanks in advance!