git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cant use def command


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.