Re: [Tutor] Statistics with python

2018-10-13 Thread Oscar Benjamin
On Sat, 13 Oct 2018 at 11:23, Mariam Haji wrote: > > Hi guys, Hi Mariam > the question is as: > If a sample of 50 patients is taken from a dataset what is the probability > that we will get a patient above the age of 56? I can think of several ways of interpreting this: (a): You have a dataset

Re: [Tutor] python game error

2018-10-13 Thread Bob Gailer
suggestions: 1-Use triple-quoted strings: print """take the short-cut!""' 2 - make the program much simpler to start with. The usual approach to developing programs like this is to start simple get the simple things working right then add more complicated scene descriptions. Even better: separa

Re: [Tutor] python game error

2018-10-13 Thread Peter Otten
Mariam Haji wrote: > Hi guys, > > I am still on the learn python the hard way. > I built the below on python 2.7 and my OS is windows 7. > > I am getting this error: > Traceback (most recent call last): > File "ex43.py", line 205, in > a_game.play() > File "ex43.py", line 21, in play >

Re: [Tutor] Statistics with python

2018-10-13 Thread Steven D'Aprano
On Sat, Oct 13, 2018 at 11:32:09AM +0300, Mariam Haji wrote: > the question is as: > If a sample of 50 patients is taken from a dataset what is the probability > that we will get a patient above the age of 56? That depends on the data set. How is it distributed? There are dozens of likely distri

Re: [Tutor] python game error

2018-10-13 Thread Steven D'Aprano
On Sat, Oct 13, 2018 at 11:25:20AM +0300, Mariam Haji wrote: > Hi guys, > > I am still on the learn python the hard way. > I built the below on python 2.7 and my OS is windows 7. > > I am getting this error: > Traceback (most recent call last): > File "ex43.py", line 205, in > a_game.play(

[Tutor] Statistics with python

2018-10-13 Thread Mariam Haji
Hi guys, I have a statistics question where I am to calculate the probability of a sample dataset. I have done the coding bit but I am not sure if I did the right thing, I just need confirmation before I submit it. the question is as: If a sample of 50 patients is taken from a dataset what is th

[Tutor] python game error

2018-10-13 Thread Mariam Haji
Hi guys, I am still on the learn python the hard way. I built the below on python 2.7 and my OS is windows 7. I am getting this error: Traceback (most recent call last): File "ex43.py", line 205, in a_game.play() File "ex43.py", line 21, in play next_scene_name = current_scene.enter(