#Popcorn Hack 1
valorant_stuff = {
"Agents": ["Sage", "Omen", "Reyna", "Vyze"],
"Maps": ["Ascent", "Fracture", "Bind", "Split"],
"Guns": ["Vandal", "Phantom", "Sheriff", "Spectre"],
"Abilities": ["Flash", "Molly", "Stun", "Concuss"]
}
def print_valorant(valorant):
for category, stuff in valorant.items():
print(f"\n{category}:")
for item in stuff:
print(f" - {item}")
print_valorant(valorant_stuff)
Agents:
- Sage
- Omen
- Reyna
- Vyze
Maps:
- Ascent
- Fracture
- Bind
- Split
Guns:
- Vandal
- Phantom
- Sheriff
- Spectre
Abilities:
- Flash
- Molly
- Stun
- Concuss
#Popcorn Hack 2
sprints = {
'Sprint1': {
'Tasks': ['Frontend Development', 'Github Pages Playground', 'Javascript Playground'],
'Time Took': '2 weeks',
'Members': ['Shawn', 'Arya', 'Aarav'],
'Highlights': ['Cookie Clicker Game', 'Snake Game']
},
'Sprint2': {
'Tasks': ['Big Ideas 3.1','Big Ideas 3.2','Big Ideas 3.3','Big Ideas 3.4','Big Ideas 3.5','Big Ideas 3.6','Big Ideas 3.7','Big Ideas 3.8','Big Ideas 3.10'],
'Time Took': '1 week',
'Members': ['Shawn', 'Arya', 'Aarav'],
'Highlights': ['Styling Text', 'Working with Friends']
}
}
def print_sprint_details(sprint_data):
for sprint, details in sprint_data.items():
print(f"\n{sprint}:")
for key, value in details.items():
print(f"{key}: {value}")
print_sprint_details(sprints)
Sprint1:
Tasks: ['Frontend Development', 'Github Pages Playground', 'Javascript Playground']
Time Took: 2 weeks
Members: ['Shawn', 'Arya', 'Aarav']
Highlights: ['Cookie Clicker Game', 'Snake Game']
Sprint2:
Tasks: ['Big Ideas 3.1', 'Big Ideas 3.2', 'Big Ideas 3.3', 'Big Ideas 3.4', 'Big Ideas 3.5', 'Big Ideas 3.6', 'Big Ideas 3.7', 'Big Ideas 3.8', 'Big Ideas 3.10']
Time Took: 1 week
Members: ['Shawn', 'Arya', 'Aarav']
Highlights: ['Styling Text', 'Working with Friends']
#Popcorn Hack 3/Popcorn Hack
soccer_league = [
{
"team_name": "FC Barcelona",
"manager": "Xavi Hernandez",
"stadium": "Camp Nou",
"players": [
{"name": "Robert Lewandowski", "position": "Forward", "number": 9},
{"name": "Pedri", "position": "Midfielder", "number": 8},
{"name": "Gerard Piqué", "position": "Defender", "number": 3}
],
"matches": [
{"opponent": "Real Madrid", "date": "2024-10-15", "result": "Win"},
{"opponent": "Atletico Madrid", "date": "2024-10-22", "result": "Loss"}
]
},
{
"team_name": "Manchester City",
"manager": "Pep Guardiola",
"stadium": "Etihad Stadium",
"players": [
{"name": "Erling Haaland", "position": "Forward", "number": 9},
{"name": "Kevin De Bruyne", "position": "Midfielder", "number": 17},
{"name": "Ruben Dias", "position": "Defender", "number": 3}
],
"matches": [
{"opponent": "Liverpool", "date": "2024-10-10", "result": "Draw"},
{"opponent": "Chelsea", "date": "2024-10-25", "result": "Win"}
]
},
{
"team_name": "Juventus",
"manager": "Massimiliano Allegri",
"stadium": "Allianz Stadium",
"players": [
{"name": "Dusan Vlahovic", "position": "Forward", "number": 7},
{"name": "Federico Chiesa", "position": "Forward", "number": 22},
{"name": "Matthijs de Ligt", "position": "Defender", "number": 4}
],
"matches": [
{"opponent": "Inter Milan", "date": "2024-10-12", "result": "Loss"},
{"opponent": "AC Milan", "date": "2024-10-29", "result": "Win"}
]
}
]
for team in soccer_league:
print(f"Team Name: {team['team_name']}")
print(f"Manager: {team['manager']}")
print(f"Stadium: {team['stadium']}")
print("Players:")
for player in team['players']:
print(f" - {player['name']} (Position: {player['position']}, Number: {player['number']})")
print("Matches:")
for match in team['matches']:
print(f" - vs {match['opponent']} on {match['date']} (Result: {match['result']})")
print("\n")
Team Name: FC Barcelona
Manager: Xavi Hernandez
Stadium: Camp Nou
Players:
- Robert Lewandowski (Position: Forward, Number: 9)
- Pedri (Position: Midfielder, Number: 8)
- Gerard Piqué (Position: Defender, Number: 3)
Matches:
- vs Real Madrid on 2024-10-15 (Result: Win)
- vs Atletico Madrid on 2024-10-22 (Result: Loss)
Team Name: Manchester City
Manager: Pep Guardiola
Stadium: Etihad Stadium
Players:
- Erling Haaland (Position: Forward, Number: 9)
- Kevin De Bruyne (Position: Midfielder, Number: 17)
- Ruben Dias (Position: Defender, Number: 3)
Matches:
- vs Liverpool on 2024-10-10 (Result: Draw)
- vs Chelsea on 2024-10-25 (Result: Win)
Team Name: Juventus
Manager: Massimiliano Allegri
Stadium: Allianz Stadium
Players:
- Dusan Vlahovic (Position: Forward, Number: 7)
- Federico Chiesa (Position: Forward, Number: 22)
- Matthijs de Ligt (Position: Defender, Number: 4)
Matches:
- vs Inter Milan on 2024-10-12 (Result: Loss)
- vs AC Milan on 2024-10-29 (Result: Win)