22/11/2025

Week 6 Learning Summary

    Week 6 subject 1: For Loops

    for variable in list or range:
        things to do…

    • Loop through a list
    • Pay special attention to indentation and ":"
    • Loop through a numerical range

    Week 6 subject 2: Lists (cont.)

    • List arithmetics: + and *
    • Generate lists from numerical ranges
    • Use lists from ranges with slicing
    • Advanced use of lists
      • for in list generator
      • if in list generator

    No comments: