Post Reply 
Python, how to export variable?
10-16-2023, 08:05 PM
Post: #1
Python, how to export variable?
I bought a Prime a month or so ago and I'm enjoying learning how to program it with python. The lack of official python docs (at least that I can find) make it more challenging, but I'm making progress.

One thing I haven't succeeded at yet and seems should be easy, is how to export a variable from python. Trying to export 'n' into variable 'x' like this doesn't seem to work:

Code:
cmd = 'x=%e; export x' % n
hpprime.eval(cmd)

Some initial learning efforts are shared at https://udel.edu/~mm/hp/

Thanks,
Mike
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Python, how to export variable? - ab3ap - 10-16-2023 08:05 PM



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