Changes between Version 130 and Version 131 of ControlSystems/SoftwareTeam/IntroToPython
- Timestamp:
- Sep 4, 2017, 11:56:42 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/IntroToPython
v130 v131 6 6 If 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. 7 7 8 [[Image(deepthoughtcomputer-619-386.png,left,1 5%,margin=5)]]8 [[Image(deepthoughtcomputer-619-386.png,left,12%,margin=5)]] 9 9 Computers, 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''. 10 10 … … 12 12 13 13 We'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.) 16 16 17 17 Python, like every programming language, has a structure. Here are the big parts: