cant use def command

Terry Reedy tjreedy at udel.edu
Sat Feb 2 16:10:44 EST 2019


On 2/1/2019 10:49 AM, mb1541def 0 wrote:
> 
> Hello,
> I need help on the def command.
> 
> My script:
> 
> Import os
> Test
> 
> def Test():
> print(“test”)
> os.system(“pause”)
> 
> someone please help,it gives me an error in python 3.

The python authors already did by providing you with a traceback that 
explains what you did wrong.  Read is carefully.  If you do not 
understand a trackback, copy and paste into your question.

> I did everything right.

Your code has 3 errors.  When you fix the first, you will get a 
traceback for the 2nd.  When you fix that, you will get a traceback for 
the 3rd.  You should re-read the fine tutorial.

-- 
Terry Jan Reedy





More information about the Python-list mailing list