COMP1021 Introduction to Computer Science Supplementary Content for L1 and L5

  • This page contains files that will be used/have been used in the lectures of L1 and L5
  • Week 13 - Lecture 2
    • In-Class Questions
      • Question 16
  • Week 12 - Lecture 2
    • Lecture Files
      • empty_dog_class.py
    • Lecture Examples
      • dog_class.py
  • Week 12 - Lecture 1
    • Lecture Examples
      • drawing_program_with_save_and_load.py
        (The program does not work well when you draw fast, but you can ignore it)
      • drawing_program_with_save_and_load_stable.py
        (This is not demonstrated in the lecture; the program provides a more stable performance)
  • Week 11 - Lecture 2
    • In-Class Questions
      • Question 15 (with answer)
        • turtle_race_question.py
        • turtle_race.py
    • Lecture Examples
      • drawing_program_with_save.py
  • Week 10 - Lecture 2
    • Lecture Files
      • gibson_game.py
        (This image locations have been fixed in the above program)
    • Lecture Examples
      • gibson_game_complete.py
      • gibson_game_with_setworldcoordinates.py
  • Week 10 - Lecture 1
    • In-Class Questions
      • Question 14 (with answer)
        • studentid_password.py
    • Lecture Examples
      • drawing_program_complete.py
  • Week 9 - Lecture 2
    • Lecture Examples
      • drawing_program_with_drag.py
    • Lecture Files
      • drawing_program.py
  • Week 8 - Lecture 2
    • In-Class Questions
      • Question 13 (with answer)
        • course_credits_question.py
        • course_credits.py
    • Lecture Examples
      • course_grades.py
    • Lecture Files
      • course_grades_incomplete.py
  • Week 8 - Lecture 1
    • In-Class Questions
      • Question 12 (with answer)
        • nice_gibson.py
        • Examples of 'fixing' the above program:
          • nice_gibson_using_global.py
          • nice_gibson_using_return.py
    • Lecture Examples
      • finding_power_using_global.py
      • finding_power_using_return.py
  • Week 7 - Lecture 2
    • Lecture Examples
      • finding_power_still_not_working.py
    • Lecture Files
      • finding_power_not_working.py
  • Week 7 - Lecture 1
    • In-Class Questions
      • Question 11 (with answer)
        • number_index_question.py
        • number_index.py
  • Week 6 - Lecture 2
    • In-Class Questions
      • Question 10 (with answer)
        • window_cartoon_loop_question.py
        • window_cartoon_loop.py
    • Lecture Examples
      • window_cartoon_with_function.py
      • window_cartoon_with_highlights.py
        (This is not demonstrated in the lecture)
  • Week 6 - Lecture 1
    • Lecture Files
      • window_cartoon_one_glass.py

        (This above image is the target)
    • Lecture Examples
      • The following three examples have been progressively 'improved':
        • chessboard_many_ifs.py
        • chessboard_combined_ifs.py
        • chessboard_single_if.py
      • window_cartoon_simple_glass.py
  • Week 5 - Lecture 2
    • In-Class Questions
      • Question 9 (with answer)
        • the_rainbow_connection_question.py
        • the_rainbow_connection.py
    • Lecture Files
      • chessboard_basic.py
    • Lecture Examples
      • chessboard_alternate_column_colors.py
  • Week 5 - Lecture 1
    • In-Class Questions
      • Question 8 (with answer)
        • lottery_game_unique_question.py
        • lottery_game_unique.py
  • Week 4 - Lecture 2
    • In-Class Questions
      • Question 7 (with answer)
        • color_rings.py
    • Lecture Examples
      • rows_of_dots_for_loop.py
      • rows_of_dots_triangle.py
  • Week 4 - Lecture 1
    • Lecture Examples
      • say_hello.py
      • rows_of_dots.py
  • Week 3 - Lecture 2
    • In-Class Questions
      • Question 6 (with answer)
        • eating_candy_bars.py
    • Lecture Examples
      • hexagon_nested_loop.py
      • incorrect_rows_of_dots.py
  • Week 3 - Lecture 1
    • Lecture Examples
      • my_grade_all.py
      • hexagon_loop.py
  • Week 2 - Lecture 2
    • In-Class Questions
      • Question 5 (with answer)
        • class_instructor.py
    • Lecture Examples
      • my_grade.py
  • Week 2 - Lecture 1
    • In-Class Questions
      • Question 3 (with answer)
        • lottery_game.py
      • Question 4 (with answer)
        • drawing_letter_program_a.py
        • drawing_letter_program_b.py
        • drawing_letter_program_c.py
        • drawing_letter_program_d.py
  • Week 1 - Lecture 2
    • In-Class Questions
      • Question 1 (with answer)
      • Question 2 (with answer)
        • happy_age.py