Python Coding
|
05-17-2022, 12:36 AM
Post: #2
|
|||
|
|||
RE: Python Coding
You can use this Python to RPN - source code converter to translate your Python code for the HP-42S.
However, I had to adjust it a little bit to make it work: Code: LBL("Profit on Pricing") Some of the generated code can be simplified a bit. For instance the following snippet: Code: if MAR == 0: # if true compute Margin … is translated to: Code: RCL "MAR" // MAR But we can use instead: Code: RCL "MAR" // MAR However the generated code to print the results doesn't appear to work. Still I hope that you have fun with Python and your programs! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Python Coding - Gamo - 05-16-2022, 12:06 PM
RE: Python Coding - Thomas Klemm - 05-17-2022 12:36 AM
|
User(s) browsing this thread: 2 Guest(s)