โ† Back to Saturday Lessons
๐ŸŽฎ

Roblox Catalog Shop

DictionariesRoblox

Python Exercise: Roblox Catalog Shop ๐ŸŽฎ

Roblox Catalog

Exercise 1: Creating Your Catalog ๐Ÿ“ฆ

๐Ÿ“– Dictionaries ๐Ÿ”‘ Keys & Values

Part A: Create a dictionary called catalog with these Roblox items and their prices:

  • "Dominus": 50000
  • "Sparkle Time Fedora": 15000
  • "Valkyrie Helm": 25000
  • "Rainbow Wings": 8000
  • "Golden Crown": 12000

Print the entire catalog.

Part B: Print individual item prices:

  • Print the price of "Dominus"
  • Print the price of "Rainbow Wings"
  • Print the price of "Golden Crown"

Part C: Update prices (limited items went up!):

  • Increase "Dominus" price by 10000
  • Decrease "Rainbow Wings" price by 2000 (on sale!)
  • Print the updated catalog

Example Output:

=== Part A ===
{'Dominus': 50000, 'Sparkle Time Fedora': 15000, 'Valkyrie Helm': 25000, 'Rainbow Wings': 8000, 'Golden Crown': 12000}

=== Part B ===
Dominus costs: 50000 Robux
Rainbow Wings costs: 8000 Robux
Golden Crown costs: 12000 Robux

=== Part C ===
{'Dominus': 60000, 'Sparkle Time Fedora': 15000, 'Valkyrie Helm': 25000, 'Rainbow Wings': 6000, 'Golden Crown': 12000}
๐Ÿ’ป

Try it yourself

Code: Roblox Catalog Shop

Loading Python runtimeโ€ฆ
Python โ€ฆ
Loading...
Output
Click "Run" to execute your code...
โ„น๏ธ About this Python environment

โœ… Standard library: heapq, collections, itertools, math, random, functools, datetime, bisect

โœ… Functions, classes, recursion, print()

โŒ No file system, subprocess, OS access, or network requests

โŒ No pip install (all supported modules are pre-loaded)

โฑ๏ธ 5 second execution time limit