Post Reply 
Python version on the HP Prime
02-14-2022, 08:47 PM (This post was last modified: 02-14-2022 09:27 PM by Guenter Schink.)
Post: #5
RE: Python version on the HP Prime
(02-14-2022 07:07 PM)roadrunner Wrote:  The file is attached below with the extension changed to .txt.

-road

Also in reply to the email of Martin. I had a cursory look at the program. Line 7 has a typo
def isclose(a,b,abs_to:):
needs to be changed to:
def isclose(a,b,abs_tol):

that is: replace the colon prior to the closing parentheses with an "l"

Otherwise it seems to run almost error free. A bug in the printing command shows up however. When you print characters with ASCII code higher than 128 the printout is garbled. There is a solution however and that is graphical text output.
[edit] it is the "°" character that disturbs the print out[/edit]

@kuenze: Martin, I can't give you more advice than you have received already here. But I think that I can do something on input and output. But that will take its time.

Günter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Python version on the HP Prime - kuenze - 02-13-2022, 10:12 AM
RE: Python version on the HP Prime - Guenter Schink - 02-14-2022 08:47 PM



User(s) browsing this thread: 1 Guest(s)