Skip to content

CRIS-CS-Python/string-slicing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

String Slicing Excercise

This exercise contains common string methods and slicing

Instructions

Clone the Repository

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> 

Implement

Choose from the files to implement:

  • america.py
  • thailand.py
  • south_korea.py

Edit the code

  • Change your name, grade and course in the program header. Replace the < and > in placeholders. For example, <Name> becomes Suzy 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 Output to Text File

Redirect standard output into a text file using the > operator.

# example
py america.py > america.txt

git add, commit and push

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

About

This exercise contains common string methods and slicing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages