Re: [Tutor] Help with writing a bean bag toss game in python

2015-05-20 Thread Laura Creighton
In a message of Tue, 19 May 2015 19:53:00 -0700, Grace Anne St Clair-Bates writ es: >Hello! I am trying to code a bean-bag toss game in python where the program >generates three random dots inside a turtle graphic. Each different hole >means a different score, but I don't know how to write the func

Re: [Tutor] Help with writing a bean bag toss game in python

2015-05-20 Thread Alan Gauld
On 20/05/15 03:53, Grace Anne St Clair-Bates wrote: Hello! I am trying to code a bean-bag toss game in python where the program generates three random dots inside a turtle graphic. Each different hole means a different score, but I don't know how to write the function to calculate the total score

Re: [Tutor] Getting import to use a variable name

2015-05-20 Thread Alan Gauld
On 20/05/15 09:02, Peter Otten wrote: $ python3 -i shorthelp.py shorthelp("whatever") No module named 'whatever' shorthelp(42) int(x=0) -> integer --- bit_length int.bit_length() -> int conjugateReturns self, the complex conjugate of any int. denominator int(x=0) -> in

[Tutor] Help with writing a bean bag toss game in python

2015-05-20 Thread Grace Anne St Clair-Bates
Hello! I am trying to code a bean-bag toss game in python where the program generates three random dots inside a turtle graphic. Each different hole means a different score, but I don't know how to write the function to calculate the total score with all three random points and display the score on

Re: [Tutor] Getting import to use a variable name

2015-05-20 Thread Peter Otten
Jim Mooney Py3.4.3winXP wrote: > On 19 May 2015 at 17:25, Jim Mooney Py3.4.3winXP > wrote: > >> >> If I can get dir to accept x I can parse the output to get rid of the >> __xxx stuff and print it out. >> > > By that I mean dir will give me a list of strings I can then use __doc__ > on to get a