Post Reply 
new user python on hp prime g2, casio cg50
05-27-2021, 03:04 AM (This post was last modified: 05-27-2021 03:16 AM by Liamtoh Resu.)
Post: #13
RE: new user python on hp prime g2, casio cg50
I tweaked your program a bit. I don't know if this was your intent.

Code:

#PYTHON test2
#test2.py
# new test
import sys
def sqrx(x):
  return int(x)**2
y = sqrx(sys.argv[0])
print(y)
#end 
EXPORT PYTEST(a)
BEGIN
  PYTHON(test2,a);
END;


Sorry, I just condensed the white space. I was trying variations on the
prime g2 for a long while trying different variations.

I don't know if hp prime g2 prime python can return pointers to sys.arg[0].
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: new user python on hp prime g2, casio cg50 - Liamtoh Resu - 05-27-2021 03:04 AM



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