The objective of this basic challenge will help us verify your interest in the study group. The challenges is designed to be very simple but require some basic python skills for accessing data, reading and writing files. You can use any resources available to figure out how to get the requirements met.
- a python script that creates a YAML file
- the YAML file contains basic information about you
- push only the python file
NOTE: The branch name and file name should be all lowercase and match the names in your dataset created.
- Clone a repo
git clone https://github.com/jandiorio/study_group_screen
-
Create a git branch named
<first_name>_<last_name>
- example:
git checkout -b jeff_andiorio
- example:
-
Create a simple python script named
<first_name>_<last_name>.py
example:jeff_andiorio.py
- Creates a list of dictionaries with a single dictionary
- dictionary will have the following keys:
['first_name', 'last_name', 'company', 'email', 'github_username']
- dictionary will have your information as the values
- convert the list to a YAML string
- write the YAML string to a file
Your file should look like the example below (key order may vary):
- company: WWT
email: jeff.andiorio@wwt.com
first_name: Jeff
github_username: jandiorio
last_name: Andiorio
TIP: Validation will check the YAML filename components match your data for first_name, last_name and that the YAML data is a single element list with a dictionary of key/value pairs.
- Add/Commit/Push
-
Add python file -
git add *.py
-
Commit your changes -
git commit -m "adds my python script"
-
Push changes to upstream repository
git push --set-upstream origin your_branch_name
example:
git push --set-upstream origin jeff_andiorio
-
NOTE: These can all be in the same script.