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:

  1. Change the name variable to your own name
  2. Change the hobby variable to your favorite hobby
  3. Run the code to see the customized message!
  4. Try different values and run it multiple times!

๐ŸŽฒ Demo 3: Random Adventure Generator

Every run creates a different adventure!

๐ŸŽฏ Try This:

  1. Run the code multiple timesโ€”each adventure is different!
  2. Add your own words to the lists (just put them in quotes with commas)
  3. 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:

  1. Change birth_month and birth_day to your actual birthday
  2. Run the code to see how many days until your birthday!
  3. 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:

  1. ๐ŸŽ’ Quest 1: Variables - Start your journey!
  2. ๐Ÿ“‹ Why Study CS? - Learn about career opportunities
  3. ๐ŸŽฏ Major vs Minor - Choose your path
  4. ๐Ÿ  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!