new user python on hp prime g2, casio cg50
|
05-24-2021, 03:52 PM
(This post was last modified: 05-24-2021 04:01 PM by Liamtoh Resu.)
Post: #2
|
|||
|
|||
RE: new user python on hp prime g2, casio cg50
The python shell on the prime works fine as a calculator.
eg. s = 100 a = 21 b = 5 c = a + b t = s - c t c === I put the following on the cg50 which i can run on the casio and from a windows cmd line shell via "python test0004.py". # 20190704 casio cg50 # micro python # print string array # test0004.py import math j=3 a=['moe','larry','curly'] print (j) print (a) for j in range(3): x=a[j] print (x) === This blog post does not present the indentation of the python source code of the last two lines, x=a[j], print(x). === Is there a way to put this program into the prime via the prime hp connectivity kit and then run it from the prime? Thanks. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)