program a poem - phil baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf ·...
TRANSCRIPT
![Page 1: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/1.jpg)
Program a PoemTo introduce the Python Poem Code Project
http://www.pythoncode.co.uk/poem-overview
By Phil Bagge
Part of the code-it.co.uk resources
![Page 2: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/2.jpg)
Learning Objective
Can a computer program write or adapt good poetry?
![Page 3: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/3.jpg)
Learning Objective
Can a computer program write or adapt good poetry?
All programs written on digital devices are written by humans
So a better way of thinking about this is..
![Page 4: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/4.jpg)
Learning Objective
Can a computer program write or adapt good poetry?
All programs written on digital devices are written by humans
So a better way of thinking about this is..
Can a human train (program) a computer to write or adapt poetry?
![Page 5: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/5.jpg)
Learning Objective
Can a computer program write or adapt good poetry?
Can a human train (program) a computer to write or adapt poetry?
What would a human need to know to write or adapt a poem?
![Page 6: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/6.jpg)
Mashed Potatoes on the CeilingBy Kenn Nesbitt reproduced with permission
Decomposing the Poem (Breaking it down)
What would a human spot about the structure/patterns & rhyme in this poem?
Response sheet available on code-it.co.uk
![Page 7: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/7.jpg)
Decomposing the Poem (Breaking it down)
What would a human spot about the structure/patterns & rhyme in this poem?Adjectives
![Page 8: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/8.jpg)
What would a human spot about the structure/patterns & rhyme in this poem?Vegetables
Decomposing the Poem (Breaking it down)
![Page 9: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/9.jpg)
What would a human spot about the structure/patterns & rhyme in this poem?Position
Decomposing the Poem (Breaking it down)
![Page 10: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/10.jpg)
What would a human spot about the structure/patterns & rhyme in this poem?Location
Decomposing the Poem (Breaking it down)
![Page 11: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/11.jpg)
What would a human spot about the structure/patterns & rhyme in this poem?Rhyming words
Decomposing the Poem (Breaking it down)
![Page 12: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/12.jpg)
Mashed Potatoes on the CeilingBy Kenn Nesbitt reproduced with permission
What would a human change if adapting this poem?
![Page 13: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/13.jpg)
Mashed Potatoes on the CeilingBy Kenn Nesbitt reproduced with permission
What would a human change if adapting this poem?
![Page 14: Program a Poem - Phil Baggecode-it.co.uk/wp-content/uploads/2015/05/poem_pythoncode_intro.pdf · Rhyming words Decomposing the Poem (Breaking it down) Mashed Potatoes on the Ceiling](https://reader033.vdocuments.net/reader033/viewer/2022041617/5e3cb6580e7550662e5b7aa9/html5/thumbnails/14.jpg)
Learning Objective
Can a computer program write or adapt good poetry?You have decomposed the poem
Now learn how computers use inputs, variables & lists to adapt poetry.
Then generalise these ideas (use them for another purpose) to solve other programming problems.