American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Introduction to Python – Nathaniel Lee

March 20, 2021 @ 5:00 pm - 6:00 pm

  1. Today we went over:
    1. https://www.ayclogic.com/list-inputs-if-and-else-loops-and-function/
  2. Homework:
    1. In the google drive, there is a file called “Mar27_QuizReviewHomework.py” that contains the 3 questions to be completed. The homework questions will also be provided below.
    2. 1.) create a while loop that prints the numbers 1,3,5,7,9,11

      2.) create a list of fruits with values [“orange”, “peach”, “apple”, banana”]. go through each element in the list with a for loop if the fruit is “banana”. Then print “I love banana”. If the fruit is any other fruit then print “I like that fruit

      3.) create a function called “yards_to_inches” that has one argument/parameter “yard”. There are 3 inches in a yard, return the number of inches with respect to the yard argument.
      Call the function and print the return value of the function

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

Details

Date:
March 20, 2021
Time:
5:00 pm - 6:00 pm
Event Category: