Question 4: Input

Write a Python program to find out how many stickers a child has collected.

  • Start by asking for the child’s name and store it in a variable called name.
  • Ask how many animal stickers they have and store it in a variable called animal_stickers (as an integer).
  • Ask how many superhero stickers they have and store it in a variable called superhero_stickers (as an integer).
  • Ask how many star stickers they have and store it in a variable called star_stickers (as an integer).
  • Calculate the total number of stickers by adding animal_stickers, superhero_stickers, and star_stickers and store it in a variable called total_stickers.
  • Print a message that includes the child’s name and the total number of stickers in a friendly sentence, like this: “Hi [name]! You have collected a total of [total_stickers] stickers.”
Write what you are looking for, and press enter to begin your search!