Lab 1: First Program¶
Follow these step-by-step instructions. Note that a lot of the instructions link to a different site. I'd recommend opening those links in a different tab on your browser. That way you don't lose your spot on what lab step you are on.
If you are installing on your own computer:
Fork the repository. See Forking the Repository.
Share the repository. See Share the Repository.
Clone the repository. See Cloning the Repository.
Open your project in PyCharm. See Open Project in Pycharm.
Try changing a file. See Change a File.
Commit and push the updated program to BitBucket. See Commit Your Code.
Great! Now let's try programming something. Create and run a test program that prints
Hello. See Printing "Hello World". Make sure you take the time to learn how to "run" the program and see the output.
Update your program to print something longer. Commit and push again. See Multiple Print Lines.
Examine and try out different escape codes. See Escape Codes. (We'll talk more about this Friday.)
Commit and push the updated program to BitBucket. See Commit Your Code again.
Now is the time to work on Lab 01. Make sure you are working in the Lab 01 folder, with the
Make the lab yours. Figure out something of your own to print. Don't just use my examples. Make it longer than one line. At least four. Also include at least one escape code.
Try running your lab. If you see the old "test" program running instead, right click on your program and tell it you want it to run
lab_01.pynot the other program.
Commit and push your lab.
Find your lab in in BitBucket. Go to "source" and find the directory it is in. Copy the URL, submit for grading.
Before turning in your program, double-check:
Did you put the code in
lab_01.pyin the Lab 1 folder?
Did you remove the sample prints shown above, and make up your own print statements? At least four lines?
Did you invite your instructor to the repository?
Does the program use proper spelling, capitalization, and grammar in the text that you printed to the screen? (Seriously, make sure what you print out has periods and capital letters.)
Does the program use at least one escape code? Also, remember you don't have to put spaces around escape codes. So do this:
"\tIndented with a tab"not
"\t Indented with a tab"because the space after the t isn't needed unless you want both a tab and an extra space.
Hover over the PyCharm "hints" that are on the right side of your editor to see if there are suggestions on how to make your code better.
Can you find the code in BitBucket?
Have you copied the URL and turned it in to Scholar? (Find the Lab 01 link on Scholar.)
Congratulations, you are done!