A beginner-friendly guide to start your Python programming journey.
This repository includes simple, well-explained examples covering Python fundamentals—ideal for absolute beginners.
- Introduction
- Prerequisites
- Installing Python
- Running Your First Python Program
- Repository Structure
- Topics Covered
- How to Use This Repository
- Next Steps
- Resources
Python is a popular programming language known for its simplicity and readability.
This repository offers hands-on examples to learn Python basics through easy-to-follow scripts.
You need:
- Basic computer skills
- Interest in programming
- A computer with internet access
No coding experience required.
- Go to the official Python website: https://www.python.org/downloads.
- Download the latest stable version (Python 3.x).
- Run the installer.
- On Windows: Check "Add Python to PATH".
- Open a terminal and verify:
Expected output:
python --version
Python 3.x.x(e.g., Python 3.11.0).
- Install an editor like VS Code, PyCharm, or Sublime Text.
- Create a file named
hello.pywith:print("Hello, Python!")
- Open a terminal in the file's directory and run:
Output:
python hello.py
Hello, Python!
- Open a terminal and type:
python
- At the prompt (
>>>), type:print("Hello, World!")
- Press Enter. Output:
Hello, World! - Type
exit()to quit.
Getting-Started-with-Python/
│
├── Print_Function.py
├── Numbers_and_Variables.py
├── Arithmetic_Operations.py
└── README.md
File: Print_Function.py
Learn to display output with print():
- Text and numbers
- Escape characters (e.g.,
\nfor new line) - Multiple values
File: Numbers_and_Variables.py
Covers:
- Data types: int, float, str
- Variable declaration
- Naming rules (e.g., no spaces, start with letter)
- Basic input with
input()
File: Arithmetic_Operations.py
Basic math:
- Addition:
+ - Subtraction:
- - Multiplication:
* - Division:
/ - Modulus:
% - Exponentiation:
**
- Clone the repo:
git clone https://github.com/satyadeokumar/Getting-Started-with-Python.git
- Open the folder in your editor.
- Run each
.pyfile (e.g.,python Print_Function.py) to see examples. - Edit and experiment to learn.
After basics, explore:
- Conditionals (if/else)
- Loops (for/while)
- Functions
- Data structures (lists, dicts)
- OOP
- Modules
Additional learning materials:
- Python Docs - Official guide.
- Codecademy - Interactive.
- freeCodeCamp - Video course.
- W3Schools - Examples.
- "Automate the Boring Stuff with Python" by Al Sweigart.
- "Python Crash Course" by Eric Matthes.
- r/Python - Discussions.
- Stack Overflow - Q&A.
- Python Discord - Chat.
- LeetCode - Problems.
- HackerRank - Challenges.