cant use def command

John Doe john at doe.com
Sat Feb 2 18:03:14 EST 2019


On 2019-02-01, mb1541def 0 <12345678mb1541def at gmail.com> 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.
> I did everything right.
>

On 2019-02-01, mb1541def 0 <12345678mb1541def at gmail.com> wrote:
>
> Hello,
> I need help on the def command.
>
> I did everything right.
>
Nah, You didn't. I recommend you to put your codelines in interpreter so
you see what exactly is wrong wrong, step by step.
As Terry wrote earlier there're 3 basic error in your code, fix one
and you'll get to another one then another.
BTW for the future, please write/paste in post what is the error.



More information about the Python-list mailing list