Re: [Tutor] class functions/staticmethod?

2019-08-13 Thread Cameron Simpson
On 14Aug2019 11:15, Steven D'Aprano wrote: On Wed, Aug 14, 2019 at 09:58:35AM +1000, Cameron Simpson wrote: On 11Aug2019 22:58, James Hartley wrote: >I am lacking in understanding of the @staticmethod property. >Explanation(s)/links might be helpful. I have not found the descriptions >found

Re: [Tutor] class functions/staticmethod?

2019-08-13 Thread Steven D'Aprano
On Wed, Aug 14, 2019 at 09:58:35AM +1000, Cameron Simpson wrote: > On 11Aug2019 22:58, James Hartley wrote: > >I am lacking in understanding of the @staticmethod property. > >Explanation(s)/links might be helpful. I have not found the descriptions > >found in the Internet wild to be particularly

Re: [Tutor] class functions/staticmethod?

2019-08-13 Thread Cameron Simpson
On 11Aug2019 22:58, James Hartley wrote: I am lacking in understanding of the @staticmethod property. Explanation(s)/links might be helpful. I have not found the descriptions found in the Internet wild to be particularly instructive. You have received some answers; to me they seem detailed

Re: [Tutor] cgi module help

2019-08-13 Thread Peter Otten
rmli...@riseup.net wrote: > I have a question about the cgi module. > > I'm trying to retrieve post data as a nested dictionary from client > code. > > For instance: > > > > """client code""" > from requests import sessions > from datetime import datetime > > session = sessions.Session() >

Re: [Tutor] HELP PLEASE

2019-08-13 Thread Alan Gauld via Tutor
On 13/08/2019 12:09, Sithembewena L. Dube wrote: > Hi Marissa, > > I really think that you could consider doing an introductory Python > tutorial and then venture back into solving this problem. >>> This is the output of my updated code: >>> Traceback (most recent call last): >>> File

Re: [Tutor] HELP PLEASE

2019-08-13 Thread Sithembewena L. Dube
Hi Marissa, I really think that you could consider doing an introductory Python tutorial and then venture back into solving this problem. Understanding concepts like data types, function syntax and loops makes all the difference in approaching programming challenges. Here is a decent and free

Re: [Tutor] HELP PLEASE

2019-08-13 Thread Cameron Simpson
On 12Aug2019 15:11, Marissa Russo wrote: This is my code: Thank you. This is the output of my updated code: Traceback (most recent call last): File "/Applications/Python 3.7/exercises .py", line 37, in main() File "/Applications/Python 3.7/exercises .py", line 33, in main m =

Re: [Tutor] HELP PLEASE

2019-08-13 Thread David L Neil
On 13/08/19 7:11 AM, Marissa Russo wrote: This is my code: import math def get_numbers(): print("This program will compute the mean and standard deviation") file1 = input("Please enter the first filename: ") file2 = input("Please enter the second filename: ") x =