Jody Crothers
Head of Learning Area (Mathematics)
Ridge View Secondary College
Western Australia
On Dec 21, 2021, at 11:29 AM, Brad Posnanski <po...@hotmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/ti-innovator/FR1PR80MB5783144533CEA4A2FF6E746AA37C9%40FR1PR80MB5783.lamprd80.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ti-innovator/EACD9F47-75D6-489F-85E3-CD1F951287FC%40d155.org.
For those eager to learn Python…
Go to www.python.org and download Python for your computer. It includes the free IDLE Editor and runtime Shell for your computer and adds Python folders to your environment search path. (This desktop Python includes a turtle module, too. TI’s turtle for CX II and CE Python is a subset of this module.) This is also THE place for all official python documentation. Note: I modified my IDLE preferences so that ctrl-R runs the program just like the CX II.
I have attached a sample program that just uses generic python code. It’s a text-based adventure game and does not use any modules unique to the TI platforms so it can ‘run anywhere’ (that python is installed). It just uses a while loop with input, if and print statements. Change the extension from ‘.pi’ to ‘.py’ * to use it in desktop Python. You can copy the code from the IDLE Editor to a blank Python program in the CXII Software and run it there without changes. To use it on CE Python use TI-Connect or TI-Smartview and drag the .py file to the Explorer workspace.
When I’m stuck on a particular feature such as string.format(), I just ‘Google it’:

www.w3schools.org is very helpful with examples.
CXII and CE Python are a subset of desktop Python so not all Python tools are available.
CXII Python is based on https://micropython.org/
and CE Python is based on https://circuitpython.org/.
Note that not all functions are listed on the python menus in CX II or CE Python.
* email clients do not like to share ‘.py’ files because they are executable code. You could also embed your .py file in a .zip file to share it.
Glad to help,
Do good,
John
To view this discussion on the web visit https://groups.google.com/d/msgid/ti-innovator/EACD9F47-75D6-489F-85E3-CD1F951287FC%40d155.org.
Mathematics Teacher/TI-Regional Instructor
2024 Class Sponsor/GirlsCode Sponsor/Math Team Coach/Asst. Girls' Field Hockey Coach
Chair of DEA Salary Committee
Highland Park High School
"Life is not waiting for the storm to be over but rather learning to dance in the rain. "
To view this discussion on the web visit https://groups.google.com/d/msgid/ti-innovator/EACD9F47-75D6-489F-85E3-CD1F951287FC%40d155.org.