A-Teachers-Guide-to-the-Intel-Galileo-Final
A-Teachers-Guide-to-the-Intel-Galileo-Final
A-Teachers-Guide-to-the-Intel-Galileo-Final
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
51 | Using <strong>the</strong> <strong>Galileo</strong> as a ComputerPython and <strong>the</strong> <strong>Galileo</strong>Python 2.7.3 comes installed on <strong>the</strong> <strong>Galileo</strong> Linux image which means you can use <strong>the</strong> <strong>Galileo</strong><strong>to</strong> teach kids Python programming. In this section we will introduce a couple of key concepts inPython and <strong>the</strong> reader is provided with several resources for going fur<strong>the</strong>r.Python can be used in an interactive way by issuing commands in <strong>the</strong> Python prompt. If youtype python at <strong>the</strong> <strong>Galileo</strong>’s Linux command prompt Python will come up in interactive modeVariablesVariables are used in python <strong>to</strong> s<strong>to</strong>re values for later use and refer <strong>to</strong> <strong>the</strong>m by name. Have alook at <strong>the</strong> following example which adds <strong>the</strong> different fruits. This example also shows that youcan do calculations in Python. Try typing in different calculations at <strong>the</strong> command line and pressenter instead of equals. The asterisk symbol is used for multiplication.