Skip to the content.

3.2 popcorn and hw hacks

This is a collection of Sprint 2 Hacks.

Popcorn Hack 1

list = ["brawl stars", "Minecraft", "Among Us","Fortnite", "Fifa Mobile"]
print(list)
['brawl stars', 'Minecraft', 'Among Us', 'Fortnite', 'Fifa Mobile']

Popcorn Hack 2

sprint_contents = {
    "Sprint 1": [
        "Frontend Development",
        "GitHub Pages Playground",
        "JavaScript Playground"
    ],
    "Sprint 2": [
        "3.1 Variables",
        "3.2 Data Abstraction",
        "3.3 Mathematical Expressions",
        "3.4 Strings",
        "3.5 Booleans",
        "3.6 Conditionals",
        "3.7 Nested Conditionals",
        "3.8 Iteration",
        "3.10 Lists"
    ],
    "Sprint 3": [
        "3.9 Developing Algorithms",
        "3.11 Search",
        "3.12 Calling Procedures",
        "3.13 Developing Procedures and Procedural Abstraction",
        "3.14 Libraries",
        "3.15 Random Values",
        "3.16 Simulations",
        "3.17 Algorithmic Efficiency",
        "3.18 Undecidable Problems"
    ]
}

for sprint, tasks in sprint_contents.items():
    print(f"{sprint}:")
    for task in tasks:
        print(f" - {task}")

if "3.14 Libraries" in sprint_contents['Sprint 2']:
    print("True, 3.14 Libraries is part of Sprint 2") 
else:
    print("False, 3.14 Libraries is not part of Sprint 2")


Sprint 1:
 - Frontend Development
 - GitHub Pages Playground
 - JavaScript Playground
Sprint 2:
 - 3.1 Variables
 - 3.2 Data Abstraction
 - 3.3 Mathematical Expressions
 - 3.4 Strings
 - 3.5 Booleans
 - 3.6 Conditionals
 - 3.7 Nested Conditionals
 - 3.8 Iteration
 - 3.10 Lists
Sprint 3:
 - 3.9 Developing Algorithms
 - 3.11 Search
 - 3.12 Calling Procedures
 - 3.13 Developing Procedures and Procedural Abstraction
 - 3.14 Libraries
 - 3.15 Random Values
 - 3.16 Simulations
 - 3.17 Algorithmic Efficiency
 - 3.18 Undecidable Problems
False, 3.14 Libraries is not part of Sprint 2

Hack 3/hw

ap_world_units = {
    "part1": {
        "Unit 1": {
            "title": "Global Tapestry (c. 1200 - c. 1450)",
            "topics": [
                "Major civilizations and cultures",
                "Trade and cultural exchange",
                "Religious beliefs and practices"
            ]
        },
        "Unit 2": {
            "title": "Networks of Exchange (c. 1200 - c. 1450)",
            "topics": [
                "Silk Road and maritime trade",
                "Impact of the Mongol Empire",
                "Technological innovations"
            ]
        }
    },
    "part2": {
        "Unit 3": {
            "title": "Land-Based Empires (c. 1450 - c. 1750)",
            "topics": [
                "Ottoman Empire",
                "Mughal Empire",
                "Safavid Empire"
            ]
        },
        "Unit 4": {
            "title": "Transoceanic Interconnections (c. 1450 - c. 1750)",
            "topics": [
                "Age of Exploration",
                "Columbian Exchange",
                "European colonization"
            ]
        }
    },
    "part3": {
        "Unit 5": {
            "title": "Revolutions (c. 1750 - c. 1900)",
            "topics": [
                "American Revolution",
                "French Revolution",
                "Industrial Revolution"
            ]
        },
        "Unit 6": {
            "title": "Consequences of Industrialization (c. 1750 - c. 1900)",
            "topics": [
                "Urbanization",
                "Labor movements",
                "Environmental impact"
            ]
        }
    },
}
print("AP WORLD HISTORY UNITS YAYY")
for part, units in ap_world_units.items():
    print(f"{part}:")
    for unit_key, unit_info in units.items():
        print(f"  {unit_key}: {unit_info['title']}")
        print(f"    Topics: {', '.join(unit_info['topics'])}")

AP WORLD HISTORY UNITS YAYY
part1:
  Unit 1: Global Tapestry (c. 1200 - c. 1450)
    Topics: Major civilizations and cultures, Trade and cultural exchange, Religious beliefs and practices
  Unit 2: Networks of Exchange (c. 1200 - c. 1450)
    Topics: Silk Road and maritime trade, Impact of the Mongol Empire, Technological innovations
part2:
  Unit 3: Land-Based Empires (c. 1450 - c. 1750)
    Topics: Ottoman Empire, Mughal Empire, Safavid Empire
  Unit 4: Transoceanic Interconnections (c. 1450 - c. 1750)
    Topics: Age of Exploration, Columbian Exchange, European colonization
part3:
  Unit 5: Revolutions (c. 1750 - c. 1900)
    Topics: American Revolution, French Revolution, Industrial Revolution
  Unit 6: Consequences of Industrialization (c. 1750 - c. 1900)
    Topics: Urbanization, Labor movements, Environmental impact