Search this site
Embedded Files
Skip to main content
Skip to navigation
Home
About the project
Background
Stories for children
Coding concepts
Introduction and teachers' notes
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Related sites
Contact us
Chapter 3
Chapter 3: A Biology Lesson
Download the Python 3.7.2. file
here
This Chapter really takes off! It’s a Biology lesson, with graphics.
The Story INPUT has a lovely flower at the end! Thanks to inspiration from Aibek Toroev.
Useful YouTube video by Aibek Toroev at:
https://www.youtube.com/watch?v=ZsnKkyRCWR4
#Date: Saturday 16th March
#Programmer: Beth Mead
print("Chapter 3")
print()
print("A Biology Lesson")
print()
print('Maisy and Malika were talking about the lesson that Maisy had watched Malika teach.')
print('Maisy thought Malika was very good at teaching.')
print('They were having a very interesting conversation, when Professor Twoot called them up again.')
print('"Hello again, Malika," the professor said. "Um, the science teacher is on a school trip, and we forgot to get someone to cover his class."')
print('"I would be happy to teach them the parts of a flower for a biology lesson," Malika said.')
print('"Um," Professor Twoot said. "The children really liked the helper you brought last time you taught them, could you possibly bring her again?"')
print('"If that is alright with you, Maisy." Maisy nodded. "Then, of course!" Malika said.')
print()
print("In the school lab, Malika had the same class as last time. Cinnamon the pig was ill again, having got food poisoning.")
print('Malika explained to the class all about the different parts of a flower.')
print('The stem holds the plant up, and carries water and nutrients to the rest of the flower.')
print('The roots keep the flower in the ground, and absorb water and food from the soil.')
print('The leaves use sunlight to make more food, using a complicated process that has a very long and difficult name.')
print('The flower petals are often brightly coloured to attract bees, and other insects.')
print()
print('Malika then asked them to copy a diagram from the whiteboard into their books, to show their teacher what they had learnt.')
print()
print('This is what Malika drew.')
The story output
The graphics
import turtle
def draw rhombus(rhombus):
for i in range(0,2):
rhombus. forward(100)
rhombus.right(30)
rhombus.forward(100)
rhombus.right(150)
def draw_flower( ):
window = turtle.Screen()
window.bgcolor("aliceblue")
pen = turtle.Turtle()
pen.shape("triangle")
pen.color("red")
pen.speed(10)
for i in range(0,36):
draw_rhombus(pen)
pen.right(10)
for i in range(0,4):
pen.right(90)
pen.right(90)
pen.forward(140)
pen.color("green")
pen.forward(160)
pen.right(90)
draw_rhombus(pen)
pen.left(180)
pen.left(270)
pen.forward(200)
pen.color("brown")
Nearly there!
And finally...
WOW!!!
Beth worked hard on this!
Google Sites
Report abuse
Google Sites
Report abuse