American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

2PM Python Level 1

May 18, 2019 @ 2:00 pm - 3:00 pm

  1. We reviewed the functions homework.
  2. We go through functions with and without return values.
  3. We started “Animal Quiz” chapter from page 37 to 38.
  4. Homework
    1. Continue “Animal Quiz” from page 39 to 41.
    2. Create a function, ‘convert_year_to_second’
      1. it has one parameter: ‘years’
      2. this function will return the number of seconds in a given year.
      3. Call the function like this “num_of_second = convert_year_to_second(2)”
      4. Combine ‘Number of seconds in 2 years is ‘ with the num_of_second variable and print it to the shell. If everything is good it should print ‘Number of seconds in 2 years is 31536000’.

Details

Date:
May 18, 2019
Time:
2:00 pm - 3:00 pm
Event Categories:
,