def pets(): """ Ask the user to type in 5 pets, then append them to the list Print out the list """ pets = [] def num_cats(): """ Use a for loop to count how many cats are in the list Print out the number """ # YOUR CODE HERE pets = ["cat","dog","apple","cat","dog","cat"] def username(): """ Ask the user for a name Print out if they are in the list and have completed their homework """ # YOUR CODE HERE homework_completed = ["Shane","Sam","Jessica","Milan","Josh"] def add_all_numbers(): """ Use a loop to add up numbers in the list Print it out """ # YOUR CODE HERE numbers = [5,1,2,7] def mean_credits(): """ Write a program to calculate the mean number of credits. What happens if we add 1 more person to the list? """ # YOUR CODE HERE credits_12CHG = [30,25,45,37,2] def academic_tracking(): """ Find the amount of students that have NCEA. Print out the number, and the % of students who have passed """ credits_12CHG = [80,85,120,65,60,100,25,75] #YOUR CODE HERE def travel_log(): """ Go to the homepage or slides to check the task. """