Main Idea
| We discussed with students that it will be nice to have an app that simulates a predictor. So we decided to use Python and in particular the “lists” in Python. |
| Creator | Rallis Spiros |
| Subject | Computer science |
| Length | 2 hours |
| Pedagogical Approach | Real-Life and Technology assisted learning. |
| Competences | Decomposition, Algorithms Debugging Problem solving Pattern Recognition |
| Grades | Age (10 – 11), high learning level, basic-intermediate programming knowledge |
| Technologies | Online Python Interpreter (repl.it ) |
| Evaluation Tools | At the end of the session students will “run” the program so we can evaluate them. |
Learning Activities
Description
We were discussing with our students how easy or difficult is to create an app by using the Python. We decided to use the structure of the “List” (learn how to store data, recall them etc…) and create a game that predicts the future. The aim was to understand the List and the function Random. We also used “WHILE Statement” and students learnt how it works. Finally, they learnt how to use a counter and how to solve a problem (Problem Solving, how to use Lists and Print function).
Specifically, we talked about how this apps works and we tried to find some predictions to fill the List. Afterwards, students received a worksheet with basic information about some parts of the program.
1.We have to remind-explain the While (condition) statement to the students. We give them an example to understand how it works. For example -While (The washing machine works) the clothes are getting cleaner.
2. We should explain to them how for i in range (…) …statement works.
3. We should guide them to built the program andhelp them to find the right conditions to use with their statements.
4. It is important to explain to them how to use a counter in order to count the remaining efforts.
5. Finally, students should understand Import Function and how useful it is for Python programs.
At the end of the session a discussion should take place in class.
1.Can we use this program to create another app with a different subject (for example we could use another List and create a Guess the Number game)?
2.Is it possible to create a version of the game with a graphical interface?
3.Is it possible to place a check on the input of specific words?
