CSC208 Fall 2025 Day 01

Class today will be an introduction to the course and the course tools

Lab 0: Exploring Python and Latex

  1. Install and set up latex (however you wish to do so)
    • We will walk through how to do this in Overleaf as a class
  2. Install and set up python (however you wish to do so)
    • We will walk through how to do this in Google Colab as a class
  3. Lab problems
    1. Discuss (and record) reflections to the following questions:
      • What is the relevance of mathematics to computer science?
      • How do you go about understanding how a program works?
      • How should you go about studying a new programming language?
    2. Fun with python:
      • figure out how to create a function that multiplies the input by 2
        • first write it out by hand, then implement it in python
      • create a second function that calls the first function and then adds 3
        • first write it out by hand, then implement it in python
      • Test both functions with the numbers 1, 0, -1, and 0.1
    3. Latex Basics (using the template)
      • Question 1 should have the answers to part 1
        • Try to work out how to make a list and put each answer under a separate bullet
      • Question 2: add a photo of your handwritten work for part 2
        • Then add the code as a code segment (lstlisting)
        • Try copy-pasting the code outside of the code segment, what happens?
      • Question 3: Playing with latex
        • Using the image from question 2, make a figure with a caption. (make it smaller)
        • Justify with examples why and when you would want to use inline math mode vs display math mode
  4. Compile the latex file to pdf and submit it on gradescope