This exercise contains common string methods and slicing
Open your terminal and execute these commands.
mkdir ~/work/repos
# ignore error if directory already exists
cd ~/work/repos
# copy the Github SSH URL in the green code button above 🠉
git clone <github-ssh-url>
cd <cloned-directory>
Choose from the files to implement:
america.py
thailand.py
south_korea.py
- Change your name, grade and course in the program header.
Replace the
<
and>
in placeholders. For example,<Name>
becomesSuzy
not<Suzy>
- Follow each step in the comments of the Python code.
- Write the code under each step.
- Test your code by running the Python file after each step.
# example
py america.py
Redirect standard output into a text file using the >
operator.
# example
py america.py > america.txt
When your files are complete and tested.
# Check repository status
git status
# add new files or files that changed
git add "<new or modified files>"
# commit the added files, giving a good message describing the changes
git commit -m 'decription of change'`
# push changes to github
git push