Time: 20-30 minutes
Purpose: Work through creating a simple program in python on your own
Introduction: This activity is probably going to be a challenge, but try it out and donβt worry if you find that struggle a bit with it, that is part of the learning process! If you find this is just too overwhelming and you need a bit of help there is template file that you can download from here which will help you get started. You can of course, also ask any questions you have here on this forum.
Task: Create a simple program that takes in an input from the user asking them what type of data they want (The options being: string, float, integer or number) and returns to them a piece of data of the type they have requested.
- Note that numbers are the intersection of floats and integers.
- You can hard code in some simple data of each type at the beginning of your script