American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

10 AM – Intro to Python – Isaac

August 8 @ 10:00 am - 11:00 am

Today, we
  1. Reviewed for loops
  2. Learned about the range function
    1. range(5) -> 0, 1, 2, 3, 4
    2. range(5, 10) -> 5, 6, 7, 8, 9
  3. Used range to repeat code a certain number of times
  4. Made a for loop that prints the even numbers from 100 to 106
    1. Modulo (%) is the remainder operator
    2. If x % 2 is 0, then x is even
Homework
  1. Try code from pages 57-58 of the textbook, and save it to aug_8_for_loop_hw3.py

If you have any questions, feel free to email me at isaac@ayclogic.com.

Details

Date:
August 8
Time:
10:00 am - 11:00 am