American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro to Python – Daniel (Joshua Sub)

July 17 @ 6:00 pm - 7:00 pm

What to Review for the Next Test
  1. We Went Over While Loop Homework
    1. remember, all while loops need either a break or a way to turn the conditional from true to false
  2. Notes to Review Homework
    1. f”strings” and string methods
      1. To put variables within f”strings” remember to use {}
      2.  when creating a new line with \n, don’t put a space
        1. Ex. f”I like pie.\nPie tastes good.”
      3.   .lower(), .upper(), .title(), .capitalize()
    2. Variable Types
      1. what is considered an int, string, list, etc and how to create one
    3. If,elif,else
      1. remember to indent and the colon
      2. Remember to use ==,>,<,<=,>=
    4. For loops and range
      1. how to write a simple for loop (Ex. for <variable> in <list_name>:)
      2. range() creates a list of numbers that you can use in your for loops
        1. range(int) will create a list starting from zero that is as long as the int
        2. range(int,int) will create a list starting from the first number and ending 1 before the second
    5. Inputs
      1. input_value =input(prompt)
      2. the input_value is default a string. you may need to switch it to a number with int()
      3. Remember that their may be capitalization mistakes with their input.
        1. “Hi” and “hi” are not the same, so you may need to use .lower() or another string method to make your code work
  1. Make sure you study up your code and tell Daniel if you can not attend next class.
  2. If you have any questions, email me at dmeng@ayclogic.com

Details

Date:
July 17
Time:
6:00 pm - 7:00 pm
Verified by MonsterInsights