goto, cls, wait commands

Duncan Booth duncan.booth at invalid.invalid
Thu Feb 10 11:13:00 EST 2005


BOOGIEMAN wrote:

> I've just finished reading Python turtorial for non-programmers
> and I haven't found there anything about some usefull commands I used
> in QBasic. First of all, what's Python command equivalent to QBasic's
> "goto" ?

There isn't one. Why do you think you need this?

> Secondly, how do I clear screen (cls) from text and other
> content ?

That depends on your computer, and how you are running your program.
One way which *might* work is:

   import os
   os.system("cls")

> And last, how do I put program to wait certain amount of
> seconds ? If I remeber correctly I used to type "Wait 10" and QBasic
> waits 10 seconds before proceeding to next command.

   import time
   time.sleep(10)



More information about the Python-list mailing list