Re: [Tutor] execute_from_command_line(sys.argv)

2019-05-01 Thread Alan Gauld via Tutor
On 01/05/2019 20:08, Miguel Angel Ramos Herrera via Tutor wrote: > This line of code gives me an error I assume you mean this line: execute_from_command_line(sys.argv) But that's not a line of standard Python so I can only assume that this is a function that you have defined yourself. But with

[Tutor] execute_from_command_line(sys.argv)

2019-05-01 Thread Miguel Angel Ramos Herrera via Tutor
Hi, good afternoon… This line of code gives me an error Can not find sys.argv Appreciate if anybody can assist me in this item… Miguel angel ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.or

[Tutor] Random ai win glitch

2019-05-01 Thread Cravan
Hi all,     I’m a beginner using python3, and recently learnt oop in pygame. What I’m trying to create is a tug of war game, but somehow my console prints Ai wins even before the player crosses the middle line.Here is my code: newsettings.py: # Basic colours BLACK    = (   0,