๐Ÿ PyQuest๐Ÿงบ Lists & Collections ยท ๐Ÿพ Mission: Pet Shop Manager
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Mission: Pet Shop Manager ๐Ÿพ

You've been hired to run the pet shop's computer system. Time to use everything from this unit at once: lists, input(), .append(), loops, f-strings and len().

Your program should work like this:

What pet is joining the shop? axolotl
And one more? corgi

๐Ÿพ PET SHOP ROSTER ๐Ÿพ
1. hamster
2. gecko
3. parrot
4. axolotl
5. corgi
Total pets in the shop: 5

Numbering trick: keep a counter variable that goes up each time around the loop:

number = 1
for thing in stuff:
    print(f"{number}. {thing}")
    number = number + 1

Your mission

  1. Start with a list called pets holding 3 pets the shop already has
  2. Use input() twice to ask for two new pets, and .append() each one
  3. Print a numbered roster with a for loop and f-strings โ€” one line per pet, starting at 1
  4. Print the total number of pets using len()

Make it yours: add a shop name, emoji, a fancy border โ€” go wild! ๐Ÿน

Your code

Press โ–ถ Run to see what your code does!