American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

9 AM – Indo – Intro to Python – Joel

July 31 @ 9:00 am - 11:00 am

Today we did:
  1. We continued reviewing and doing more exercises in preparing for the 1st quiz.
Homework:
  1. Finish the exercise we did in class below:
  2. Create a list of 5 animals (the animals are up to you)
    Add a “panda” at the end of the list
    Delete the second element of the list (second element, not index)
    Replace the second index with “axlotl”
    Print the length of the list
    Print the last element of the list (using len)
  3. Review the following topics (you can use your files or the files from the Google Drive):
    1. Printing, Variables and Data Types (don’t forget f-string, .upper, etc.)
    2. If, Elif, Else
    3. Input
    4. List (.append, etc. )
    5. List For Loop (For-Each)
    6. For Loop with Range
    7. While Loops
  4. Continue reviewing the exercises you did, and make sure to understand each part. If you need to, you can do the exercises again to improve speed. But most importantly, make sure you understand the logic.
  5. Today, it seems like you had a little trouble with these topics. Remember:
    1. Figure out which type of for loop is best for a problem (for-each deals with lists, otherwise use the for loop with range)
    2. Remember that a while True loop (forever loop) is useful, and remember to break using the break keyword if you need to.
    3. Remember .title()
    4. Remember that sometimes after input (input is by default a string), you have to cast (change the datatype) the input into an integer if you are comparing it with another integer, like in a if statement (for example, if age >= 5).
    5. Review on how to make a program case insensitive using .lower() (you can look up June22_IfElseElif.py in the Google Drive or your files).
  6. The quiz will be 1-hour long, and it will be a Google Form. You can use Thonny to write your code, but you cannot look at your previous files (closed book quiz). Once you’re done with a question, you can copy and paste your code from Thonny into the Google Form.
  7. You don’t have upload your homework, just do the exercises and review as you need.

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

Details

Date:
July 31
Time:
9:00 am - 11:00 am
Verified by MonsterInsights