# Data Generation Activity

**URL:** <https://club.ministryoftesting.com/t/data-generation-activity/33973>\
**Category:** Discussions\
**Tags:** python, data, python-for-testers-intro\
**Created:** [30 January 2020 14:57 UTC](https://club.ministryoftesting.com/t/data-generation-activity/33973 "2020-01-30T14:57:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davewesterveld](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/davewesterveld/32/283_2.png) [@davewesterveld](https://club.ministryoftesting.com/u/davewesterveld)\
**Post date:** [30 January 2020 14:57 UTC](https://club.ministryoftesting.com/t/data-generation-activity/33973/1 "2020-01-30T14:57:11Z")

</div>

**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](https://github.com/djwester/pythonfortesters/blob/master/data_generation_activity_template.py) 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
