American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Python – Gamas

August 24, 2022 @ 6:00 pm - 7:00 pm

Today We Did
  1. We continued with Robux System. We added purchase_item function to eliminate code duplication.
  2. We keep track robux_spent by creating a new variable.
Homework
  1. Continue with Robux system, add a feature to keep track of items purchased that are less than 200 robux. Look at the example below
  2. What do you want to do: 
    1. Buy hat 100 Robux
    2. Buy hair 150 Robux
    3. VIP Server 500 Robux
    4. Add more Robux
    5. Exit
    Enter your selection: 4
    How much robux you want to add: 1000
    Your robux balance is now 1300
    
    What do you want to do: 
    1. Buy hat 100 Robux
    2. Buy hair 150 Robux
    3. VIP Server 500 Robux
    4. Add more Robux
    5. Exit
    Enter your selection: 1
    You purchased a Hat, you have 1200 robux remaining
    
    What do you want to do: 
    1. Buy hat 100 Robux
    2. Buy hair 150 Robux
    3. VIP Server 500 Robux
    4. Add more Robux
    5. Exit
    Enter your selection: 3
    You purchased a VIP Server, you have 700 robux remaining
    
    What do you want to do: 
    1. Buy hat 100 Robux
    2. Buy hair 150 Robux
    3. VIP Server 500 Robux
    4. Add more Robux
    5. Exit
    Enter your selection: 5
    
    You have purchased the following items:
    Hat
    Vip Server
    
    These are items that you purchased that are less than 200 robux: 
    Hat
    
    Your remaining robux is 700 robux.
    
    You have spent 600 robux.

Details

Date:
August 24, 2022
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights