IB Computer Science Year 1 Standard Level - May 15 2018 Lesson Notes: Difference between revisions
Mr. MacKenty (talk | contribs) No edit summary |
Mr. MacKenty (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
Today's class will be a fun coding exercise! | Today's class will be a fun coding exercise! | ||
'''Don't worry!!!!''' You are working with a file that is only 370,099 lines long. Really. Please watch | '''Don't worry!!!!''' You are working with a file that is only 370,099 lines long. Really. | ||
[https://youtu.be/V4WylTk5GsE Please watch this short video] and get to work. You will need to download the file on your computer. It is important you save it on your desktop. | |||
Click here: [[media:Python and files.zip]] | |||
Please: | |||
# write some code which prints every word that starts with the letter a | |||
# write some code which prints for every word that ends with the letter s | |||
# write some code which prints every word which starts with the letter a AND is only 4 characters long | |||
## you will need to write a conditional with two parts: if (line[0] == "a" and len(line) == 4): | |||
# write some code which prints every word that ends with the letters "ing" | |||
# write some code which prints every word with the letter "j" as the third letter | |||
# write some code which prints every word with the letter "d" as the third letter | |||
# write some code which prints every word with the letter "i" as the fifth letter | |||
I hope you can quickly see how this program could be used to make you a SCRABBLE NINJA! You must send me your completed code, via email, by the end of class. If you complete this assignment prior to the end of class, please use codeHS. | |||
</td> | </td> |
Latest revision as of 14:44, 15 May 2018
What are we going to learn today?[edit]Today's class will be a fun coding exercise! Don't worry!!!! You are working with a file that is only 370,099 lines long. Really.
Click here: media:Python and files.zip
I hope you can quickly see how this program could be used to make you a SCRABBLE NINJA! You must send me your completed code, via email, by the end of class. If you complete this assignment prior to the end of class, please use codeHS.
|
What is our home learning?[edit] |
How am I being assessed today?[edit]I will assess you formatively today, and make a professional judgement to what extent you understand our learning material. I will use observation, your written work, answers to questions, and contribution to class discussions as data to make my decisions. I normally record my observations in a "evidence of learning" spreadsheet, which I will happily share with you privately if you so wish. I usually need a day or two notice. I will also ask you to complete a self-assessment which I will use to help me guage how well you think you understand our material in class. |
|
As a computer scientist, you have:[edit]
|
|
Credits[edit] |