American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

5 PM – Introduction to Python – Nathaniel Lee

June 12, 2021 @ 5:00 am - 6:00 pm

  1. Today we:
    1. Finished learning about dictionaries
    2. Reviewed the homework due
  2. Homework:
    1. Do the following problem below. This question can also be found in the google drive file named “Jun12_OOPHw1.py”
    2. Homework:

      Create a dictionary called “Animal” and have 4 keys such as “gender”, “diet”, “age”, “name”
      And use user input to give these key values.

      Create a program where if the diet is “carnivore” then print all the information of that animal and state that it eats meat
      If the diet is “herbivore” then print all the information out and state that it does not eat meat
      If if the diet is unknown or anything else, just print all the information of that animal out and say that its diet is unknown

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

Details

Date:
June 12, 2021
Time:
5:00 am - 6:00 pm
Event Category:
Verified by MonsterInsights