Hello, World!

Lab 1

Welcome to your first CSCI 150 lab! Hopefully you’ve already completed the Pre-Lab. If not, head over there now before continuing on. Otherwise, let’s get started with Lab 1. This lab is all about finding your bearings in GitHub Codepaces and writing your first Python programs!

Goals
  • Familiarize yourself with GitHub repositories and Codespaces
  • Create your first Python programs and run them
  • Learn how to get input from the user while a program is running
  • Use the command line to run your programs
  • Practice string and integer operations
  • Push your code to GitHub – This is how you’ll save and submit your homework for a grade.

The lab is broken up into sections to make things more manageable. Each section indicates how many points it is worth. Be sure to read each section carefully. With the exception of this lab, most labs are expected to take 7-9 hours, which is much longer than our section lab periods. That’s why each lab has a Warmup that is intended to be completed while we are together during the lab period. The Warmup will get you ready for the problems you’ll find later in the lab. Get as far as you can in the scheduled lab time, and try to work steadily on the lab throughout the week. Don’t leave it all until the day the lab is due.

Occasionally you’ll come across a ReadMe box like the one below. As you might have guessed from the name, these boxes contain important information. Be sure to read them, they might even save you some time.

README

Honor Code Reminders:

  • Discussing high-level ideas with other students is encouraged, but only show your actual code to course staff (professors/lab helpers/tutors). The only exception is the warmup, which is to be completed in pairs.
  • Consulting online resources other than assigned reading or documentation provided by the lab instructions is prohibited. Course staff will be happy to answer any questions you have.
  • Use of generative AI for any reason is not allowed. This includes for both writing code and for debugging or reformatting code you wrote.