American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro to Python – Joshua

June 27 @ 8:00 am - 5:00 pm

Today We Did

    1. For Loops: how we access across an entire a list
      1. Don’t forget to indent! All code you want to be looped/repeated should be one indent more than the for loop and right under it
        1. Another Reminder, the code under if/else statements need an additional indent
      2.  Structure for a For loop is  -> for a in name_of_list:
        1. Alternately, you can use a range to create a list of position     (Ex. range(2) =[0,1])
    2. range(len(name_of_list)) vs using just name_of_list
      1. Use range when you need the position later
        1. Note, you will be using  name_of_list[0] to access inside the list with range

Homework and Reminders

  1. copy pages 54 and 55 and the try it yourself on pg 56 (4-1/4-2)
  2. Name it For_loop_practice_june_27.py
  3. Upload your answer to google drive before next week Wednesday night.
  4. July 4th is a  holiday, we will not have class next week

If you have any questions feel free to email me jwidjanarko@ayclogic.com

Details

Date:
June 27
Time:
8:00 am - 5:00 pm
Verified by MonsterInsights