Changes between Version 87 and Version 88 of ControlSystems/SoftwareTeam/IntroToPython
- Timestamp:
- Sep 4, 2017, 11:00:46 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/IntroToPython
v87 v88 302 302 It would be a enormous effort to create your own spell check library, so reusing one saves a lot of time. We'll be using this when we program robots because a lot of the work we need to do to communicate with the parts of a robot has already been done. And we want to spend time making robots do things, not figuring out how to communicate with then. 303 303 304 Unfortunately, you can't include external packages in your code in our web-based code runner and run them, so you'll have to use your imagination to see how this particular example works. You'll use them a lot in the intermediate training as the year goes on. This 304 Unfortunately, you can't include external packages in your code in our web-based code runner and run them, so you'll have to use your imagination to see how this particular example works. You'll use them a lot in the intermediate training as the year goes on. This concludes Lesson 4. 305 305 306 306 = Final Exam = 307 307 [[Image(1B6AA343-B7D4-49F7-88DA-2AB89A7A4E72-5482-00000452F115F905_tmp.png,left,10%,margin=5)]] 308 * ''Create a program that prints random fortune cookie sayings.'''308 * Feeling like you got this? Fine: ''Create a program that prints random fortune cookie sayings.''' 309 309 * Randomly build the sayingss from at least three different lists of nouns and verb phrases. Make the random sayings sound suitably cryptic and wise. 310 310 * The program should prompt the user for the number of sayings they want output, validate that it is indeed a number, and print out that many. 311 311 * Use functions and control structures to make the code manageable. Its best if you work in pairs for this exercise. 312 312 * If you need help, refer to this lesson, the [[https://docs.python.org/3/index.html | Official Python 3 Documentation]], and don't hesitate to ask the mentors. 313 314 = What's Next = Well that concludes the Software Introduction. We welcome your feedback. Software takes a lot of work and study to write well, and this is just a taste. For those of you who select the Software team, we'll begin intermediate training with the Raspberry Pi, and show you how to write programs that use external libraries to communcation with the outside world through motors, sensors and the like.''' 313 [[br]] 314 [[br]] 315 [[br]] 316 [[br]] 317 [[br]] 318 [[br]] 319 320 = What's Next = 321 Well, that concludes the Software Introduction. We welcome your feedback. 322 323 Software takes a lot of work and study to write well, and this is just a taste. For those of you who select the Software team, we'll begin intermediate training with the Raspberry Pi, and show you how to write programs that use external libraries to communcate with the outside world through motors, sensors and the like. Then we'll introduce you to the RoboRio, the competition robotics platform. ''' 315 324 316 325 ----