Try It Now!
Write Your First Code in 30 Seconds
๐ฎ INTRO | Difficulty: None | Time: 5 minutes | Perfect for College Fair Visitors
๐ป Interactive Options:
- ๐ Open in JupyterLite - Full Jupyter environment in your browser
- โถ๏ธ Run code directly below - All code cells on this page are editable and runnable
- ๐ฅ Download Notebook - For use in local Jupyter or Google Colab
๐ Your First Code - Right Now!
The best way to understand Computer Science is to try it. No experience neededโjust click the โถ๏ธ button and see what happens!
โจ How it works: 1. Read the description 2. Click the โถ๏ธ Run Code button (or press Shift+Enter) 3. See the magic happen! 4. Edit the code and run it again to see what changes!
๐จ Demo 1: Draw with Code
See how code can create art! This program draws a colorful spiral.
๐ฏ Try This: 1. Change the colors to your favorites (try: โpurpleโ, โgreenโ, โorangeโ, โpinkโ, โgoldโ) 2. Change the number 59 to 90 or 45 - what happens? 3. Change i * 4 to i * 6 to make it bigger!
๐ฌ Demo 2: Make a Smart Chatbot
Create a program that talks to you!
๐ฏ Try This:
- Change the
namevariable to your own name - Change the
hobbyvariable to your favorite hobby - Run the code to see the customized message!
- Try different values and run it multiple times!
๐ฒ Demo 3: Random Adventure Generator
Every run creates a different adventure!
๐ฏ Try This:
- Run the code multiple timesโeach adventure is different!
- Add your own words to the lists (just put them in quotes with commas)
- Can you add a list of heroes? (Hint: copy one of the lists and change the words)
๐ Demo 4: Birthday Calculator
Calculate how many days until your next birthday!
๐ฏ Try This:
- Change
birth_monthandbirth_dayto your actual birthday - Run the code to see how many days until your birthday!
- Try your friendโs birthday too!
๐งฎ Demo 5: Password Strength Checker
Is your password strong enough? Letโs check!
๐ฏ Try This: Add your own test password to the test_passwords list to see how strong it is!
๐ What Just Happened?
You just wrote and ran real Python code! ๐
In these few minutes, you:
- ๐จ Created art with loops and colors
- ๐ฌ Built an interactive chatbot
- ๐ฒ Used randomness to generate content
- ๐ Calculated dates with logic
- ๐ Analyzed password security
And this is just the beginning! Everything on your phone, computer, and the internet works because someone wrote code like this (but more complex).
๐ Want to Learn More?
Keep Going!
Now that youโve seen what code can do, youโre ready to start learning:
- ๐ Quest 1: Variables - Start your journey!
- ๐ Why Study CS? - Learn about career opportunities
- ๐ฏ Major vs Minor - Choose your path
- ๐ All Quests - See the full adventure map
๐ Questions about CS at Allegheny College?
๐ง Contact: [email protected]
๐ Website: https://cs.allegheny.edu
Weโd love to hear from you!