Changes between Version 130 and Version 131 of ControlSystems/SoftwareTeam/IntroToPython


Ignore:
Timestamp:
Sep 4, 2017, 11:56:42 PM (8 years ago)
Author:
cdelgigante
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/IntroToPython

    v130 v131  
    66If you want to tell a computer to do something, you have to communicate with the computer in a programming ''language''.  When we say language, we mean it.   A language has words and grammar and everything else, just like French.
    77
    8 [[Image(deepthoughtcomputer-619-386.png,left,15%,margin=5)]]
     8[[Image(deepthoughtcomputer-619-386.png,left,12%,margin=5)]]
    99Computers, despite what you may think, are dumb.  They do only exactly what you tell them to, and don't guess or interpret.  If say to your Mom or Dad "Hey, can you bring me that thing?", there's a (slim) chance they may bring you the right "thing".  A computer wont.  Ever.  Just a cold, unfeeling "'''ERROR'''".  A programming language is very precise, and to tell a computer what you want, you have to be precise too.   In this training session, we'll introduce programming to you, and make some things work.  You know, those ''things''.
    1010
     
    1212
    1313We'll be starting with a programming language called [https://www.python.org/ Python], specifically Python 3.  There are a lot of programming languages.  Some are created because they're better for solving certain problems, others because people are bored and want to try something new.  Python has been around for a while, and its pretty popular because its easy to use.  The team uses Java to control the robot but that language is a little trickier.  We'll get to that one later once you get a handle on the basics.
    14 [[br]][[br]]
    15 (A quick note:  If you know all this already and are getting bored...CONGRATULATIONS!  Here's [[https://www.youtube.com/watch?v=x94yTpv0T1k|some cute corgi puppy videos]] as your reward. Then, come back and dive into a later section--this is all self-paced.   Regardless, we recommend you do this set of lessons if you haven't programmed in Python 3 before because we build on it later and you'll be lost.  If you have programmed in Python 3 before, you can just skip to the Final Exam at the end, show your stuff, and help out your teammates.)
     14 
     15(''A quick note'':  If you know all this already and are getting bored...CONGRATULATIONS!  Here's [[https://www.youtube.com/watch?v=x94yTpv0T1k|some cute corgi puppy videos]] as your reward. Then, come back and dive into a later section--this is all self-paced.   Regardless, we recommend you do this set of lessons if you haven't programmed in Python 3 before because we build on it later and you'll be lost.  If you have programmed in Python 3 before, you can just skip to the Final Exam at the end, show your stuff, and help out your teammates.)
    1616
    1717Python, like every programming language, has a structure.  Here are the big parts: