Post Reply 
HP_PRIME PYTHON SYNTAX: HP_PPY
08-30-2020, 09:09 AM
Post: #40
RE: HP_PRIME PYTHON SYNTAX: HP_PPY
(08-30-2020 02:48 AM)toml_12953 Wrote:  Thanks! It does work now. I wonder how it worked in the YouTube video since I copied it directly from there.

The reason is that the Python syntax converter was improved, instead of translating = (Python) to := (Xcas) everywhere, it take cares of the context.
I think := is now valid under Python, you can therefore write
Code:

if abs(z:=z*z+c)>2:
This code will run a little bit faster than
Code:

z:=z*z+c
if abs(z)>2:
and that's why I wrote it like that.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP_PRIME PYTHON: HP_PPY - toml_12953 - 11-12-2017, 04:42 PM
RE: HP_PRIME PYTHON: HP_PPY - webmasterpdx - 11-12-2017, 05:58 PM
RE: HP_PRIME PYTHON: HP_PPY - Carlos295pz - 11-12-2017, 06:08 PM
RE: HP_PRIME PYTHON: HP_PPY - webmasterpdx - 11-12-2017, 06:12 PM
RE: HP_PRIME PYTHON: HP_PPY - Carlos295pz - 11-12-2017, 06:19 PM
RE: HP_PRIME PYTHON: HP_PPY - webmasterpdx - 11-12-2017, 06:21 PM
RE: HP_PRIME PYTHON: HP_PPY - Carlos295pz - 11-12-2017, 06:26 PM
RE: HP_PRIME PYTHON: HP_PPY - parisse - 11-12-2017, 07:35 PM
RE: HP_PRIME PYTHON SYNTAX: HP_PPY - parisse - 08-30-2020 09:09 AM



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