Jody Crothers
Head of Learning Area (Mathematics)
Ridge View Secondary College
Western Australia
Great timing, Jody: If you look at that Snake file I posted… Problem 1 is TI-Basic and Problem 2 is Python but the algorithms are IDENTICAL. Makes for a good comparison of syntax.
Problem 3 is the Object-Oriented approach which is significantly different from the procedural ‘traditional’ approach.
Greetings from Florida, USA where we’re in the 70’s - 80’s (F), low 20’s (C) and ocean temp around 73F.
Do good,
John
--
You received this message because you are subscribed to the Google Groups "TI-Innovator for Education" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ti-innovator...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ti-innovator/SL2P216MB1048072D36406D9C92632EBCB87C9%40SL2P216MB1048.KORP216.PROD.OUTLOOK.COM.
--
--
To post to this group, send email to tins...@googlegroups.com
To unsubscribe send email to tinspire+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
The tns documents shared by group members are archived at
https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime
---
You received this message because you are subscribed to the Google Groups "tinspire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinspire+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinspire/002101d7f66f%240cdf6a10%24269e3e30%24%40optonline.net.
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