Peer Learning

Peer learning is an effective active learning technique. In peer learning, students learn with and from each other through social interaction while working on a project or assignment.

Expectations

  • Form a team of 2 or 3 peers by seating close to each other.
  • Have your laptops ready with all the tools you need.
  • Be ready to also have a notebook to take notes, draw visuals, and drafting other things that help with communicating and sharing ideas.
  • There are two roles you’ll assume and take turns with
    • Driver, primarily responsible for typing in the assignment/lab files
    • Navigator, primarily resopnsible for questioning, double checking, ensuring that what the team does makes sense, and everyone is on the same page.
  • Be respetful, patient, supportive.
  • Don’t settle for simply accepting an answer or guidance without understanding it.
  • Ask a classroom assistant (CA) or the instructor for assistance if a question/issue doesn’t get resolved.

In-Class Practice

Simple Python exercises

Use the Python interpreter command-line to

  • Experiment with Python built-in functions:
    • Define and initialize arguments with given values
    • Call the Python built-in function with those arguments
    • Example
        >>> nums = [3, 2 ,7 ,5]
        >>> highest = max(nums)
        >>> highest
    
  • Experiment with built-in methods of built-in types
    • Use help() to learn about built-in types, e.g., help(str) or help(list)

Develop simple functions

  • Open practice folder in comp801 in VSCode.
  • Create week-N.py module, wheren N is the week number (similar to the slides number), e.g., week-2.py
  • All practice exercises are written in week-N.py module.
    • These are short, simple snippets of code from the active reading, or demonstrated in class.
    • It is recommended that you encapsulate the exercise in a function.
    • Test the function in main().
    • Call main() at the end of the module.
  • Run and debug the code exercises.
  • Trace the code executing by running the code in the VSCode Debugger.