Re: python problem

2021-12-08 Thread Mats Wichmann
On 12/8/21 11:18, Larry Warner wrote: I am new at Python. I have installed Python 3.10.1 and the latest Pycharm. When I attempt to execute anything via Pycharm or the command line, I receive a message it can not find Python. I do not know where Python was loaded or where to find and to update PA

Re: Python problem

2015-10-10 Thread Laura Creighton
In a message of Sat, 10 Oct 2015 20:39:29 +0100, Mark Lawrence writes: >On 10/10/2015 07:15, Sébastien Pinsonneault wrote: >> Hi, >> >> I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me >> each time if I want to modify, repair or uninstall, but doesn't open. >> >> I have Windows

Re: Python problem

2015-10-10 Thread Mark Lawrence
On 10/10/2015 07:15, Sébastien Pinsonneault wrote: Hi, I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each time if I want to modify, repair or uninstall, but doesn't open. I have Windows 10 64 bits. Thx Check out the issue tracker as there are known problems. If you'r

Re: Python problem

2015-10-09 Thread Chris Angelico
On Sat, Oct 10, 2015 at 5:15 PM, Sébastien Pinsonneault wrote: > I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each > time if I want to modify, repair or uninstall, but doesn't open. > > I have Windows 10 64 bits. "doesn't open"? Do you mean that it's refusing to install, o

Re: Python problem

2013-02-19 Thread ach360
Loop_variable= 1 Pi=1.0 term=0 T=1.0 While (loop_variable> 0): Loop_variable=Loop_variable+1 T=T+2.0 If (loop_variable%2 ==0): Term=0; Else: term=1; If term ==0: Pi=Pi- float(1/T); Else: Pi=Pi+ float(1/T); -- http://mail.python.org/mai

Re: Python problem

2013-02-19 Thread Steven D'Aprano
On Tue, 19 Feb 2013 19:01:53 -0800, ach360 wrote: > I'm so lost. Given the formula pi=4-4/3+4/5-4/7+4/9-4/11+.. How do I > print a table showing approximate value of pi by computing one term4-4/3 > then two terms4-4/3+4/5, and so on.Then how many terms of the series > before I get 3.14, 3.141,

Re: Python problem

2011-03-28 Thread John Parker
Dear all, This is the solution that I came up with to deal with handling the file of scores. Thank you all for your feedback! John # define calc average function def calcAve(mylist): total = 0 count = 0 for i in range (0, len(mylist)): # count scores for even number items in in

Re: Python problem

2011-03-28 Thread John Parker
Ethan, Thanks for pointing that out. I commented that code out and then ran it. It created the list of names. Now, I just need to figure out how to get the scores into the list called scores. It would appear that this is done with a nested for loop. Thanks, John On 3/28/11 12:02 PM, "Etha

Re: Python problem

2011-03-28 Thread Rhodri James
On Mon, 28 Mar 2011 22:38:29 +0100, John Parker wrote: infile = open("scores.txt", "r") lines = infile.readlines() infile.close() tokens = lines.split(",") names = [] scores = [] [snippety snip] error: Traceback (most recent call last): File "Score_8.py", line 38, in tokens = lines.s

Re: Python problem

2011-03-28 Thread Peter Pearson
On Mon, 28 Mar 2011 11:38:29 -1000, John Parker wrote: [snip] > I have written the following code so far but get an error. > > infile = open("scores.txt", "r") > lines = infile.readlines() > infile.close() > tokens = lines.split(",") [snip] > error: > Traceback (most recent call last): > File

Re: Python problem

2011-03-28 Thread Ethan Furman
John Parker wrote: I have written the following code so far but get an error. infile = open("scores.txt", "r") lines = infile.readlines() infile.close() tokens = lines.split(",") [snip] error: Traceback (most recent call last): File "Score_8.py", line 38, in tokens = lines.split(",")

Re: Python problem

2011-03-28 Thread Ian Kelly
On Mon, Mar 28, 2011 at 3:38 PM, John Parker wrote: > error: > Traceback (most recent call last): >  File "Score_8.py", line 38, in >    tokens = lines.split(",") > AttributeError: 'list' object has no attribute 'split' > > So, what am I doing wrong? 'lines' is a list of strings. 'split' is a st

Re: Python Problem

2007-09-12 Thread Wiseman
Marc, Thank you. I followed the instructions in given at pyenchant.sourceforge.net and got the application to work. ((;-)) Meir PS: My challenge now is to port the application to Redhat. I already know that Redhat is missing the pyenchant package - I hope the same installation process will so

Re: Python Problem

2007-09-12 Thread Marc 'BlackJack' Rintsch
On Wed, 12 Sep 2007 09:09:02 +0200, A.T.Hofkamp wrote: > On 2007-09-11, Wiseman <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> OK - it works in WindowsXP. >> I installed "enchant" on my SuSE 10.0 (using YAST). >> The enchant Suse package looks like a general Linux package, not a >> Python specific.

Re: Python Problem

2007-09-12 Thread A.T.Hofkamp
On 2007-09-11, Wiseman <[EMAIL PROTECTED]> wrote: > > Hi, > > OK - it works in WindowsXP. > I installed "enchant" on my SuSE 10.0 (using YAST). > The enchant Suse package looks like a general Linux package, not a > Python specific. You'd seem to be right judging by this web-page: http://www.nove

Re: Python Problem

2007-09-11 Thread Wiseman
Hi, OK - it works in WindowsXP. I installed "enchant" on my SuSE 10.0 (using YAST). The enchant Suse package looks like a general Linux package, not a Python specific. Running the program in Python I am getting the same error message from the line: "import enchant". ImportError: No module nam

Re: Python Problem

2007-09-10 Thread Wiseman
Carsten. I want to thank you for your help. I could not check this until this morning. Now that I checked your answer - THANK YOU. I do have 2 installations of Python on my machine. Once I called Python with a full path - my program orked as expected. Meir -- http://mail.python.org/mailman/l

Re: Python Problem

2007-09-07 Thread Carsten Haese
On Fri, 2007-09-07 at 21:58 -0400, Wiseman wrote: > Hi, > > The line: > > import enchant > > works perfectly OK when I call a Python progrma (sp.py) from IDLE > (WInXP). When I try to run it ftom the command line (python sp.py) the > response is: > > Traceback (most recent call last): >File