-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python Coding #1
Comments
Hi @defencedog |
@return-main I just want to know if variables can somehow shared between python & PPL. I mean say my python returns a list in a variable how can I assign it to HP Prime native |
@defencedog I'm sorry for the delay, I was busy organizing my marriage 👰♂️ This was much harder than expected, but I made you a proof of concept: #PYTHON PY_RANGE
import sys
var_from = int(sys.argv[0])
var_to = int(sys.argv[1])
l=list(range(var_from,var_to))
print("{"+str(l)[1:-1]+"}")
#END
EXPORT RANGE(var_from,var_to)
BEGIN
// clear the Terminal
PRINT;
// run the Python script
PYTHON(PY_RANGE,var_from,var_to);
// evaluate the string in the Terminal and return to the stack
RETURN EXPR(TERMINAL(1));
END; |
@return-main Extremely Thanks & Congratz on your marriage. Your idead is very welcome. I have experimented with python greatly & you can visit my playground |
With latest firmware Python is enabled in HP Prime. I have some question regarding it. Will you help
The text was updated successfully, but these errors were encountered: