Welcome to your first programming project! This folder contains several Python programs that will teach you the basics of coding.
- What it does: Prints "Hello, World!" to the screen
- What you'll learn: How to run a program and display text
- Try it:
python hello.py
- What it does: Asks for your name and greets you personally
- What you'll learn: How programs can interact with users
- Try it:
python interactive_hello.py
- What it does: Shows how to store and use different types of data
- What you'll learn: Variables, numbers, text, and lists
- Try it:
python fun_with_variables.py
- What it does: A calculator that does math with numbers you enter
- What you'll learn: User input, math operations, and decision making
- Try it:
python simple_calculator.py
- Open a terminal/command prompt
- Navigate to this folder:
cd hello-world-project
- Run any program:
python filename.py
For example: python hello.py
- Start with
hello.py
- Get familiar with running programs - Try
interactive_hello.py
- See how programs can talk to you - Explore
fun_with_variables.py
- Learn about storing information - Challenge yourself with
simple_calculator.py
- Build something useful!
- Modify the messages in any program to say something different
- Add your own print statements to display new messages
- Change the favorite foods list in
fun_with_variables.py
- Add more math operations to the calculator
- "What does this line of code do?"
- "How can I modify this program to do X?"
- "Can you explain why we use variables?"
- "What other things can I build with Python?"
You now have your first programming project! Each program builds on the previous one, teaching you new concepts step by step.
Remember: Programming is about solving problems and being creative. Don't be afraid to experiment and make changes!