https://github.com/ishmal793/basic-python-
Beginner-friendly Python code examples and exercises β a strong foundation for aspiring data analysts.
https://github.com/ishmal793/basic-python-
data-analysis data-analytics learning-python-code problem-solving python-basics python-for-beginners
Last synced: 5 months ago
JSON representation
Beginner-friendly Python code examples and exercises β a strong foundation for aspiring data analysts.
- Host: GitHub
- URL: https://github.com/ishmal793/basic-python-
- Owner: Ishmal793
- Created: 2025-04-04T18:56:17.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-04T19:12:59.000Z (9 months ago)
- Last Synced: 2025-06-23T15:49:55.397Z (6 months ago)
- Topics: data-analysis, data-analytics, learning-python-code, problem-solving, python-basics, python-for-beginners
- Language: Jupyter Notebook
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic-Python-
# π Python Basics β Beginner Level
This repository contains Python basics that cover all the essential topics for absolute beginners in programming. These notes and code examples are designed to help you understand the building blocks of Python, which is the backbone of Data Analytics and Data Science.
## π Description
When I first started learning Python, I created this notebook to understand and practice fundamental concepts. Today, whenever I revisit this code, it helps me revise and refresh my Python basics β and I hope it does the same for you!
π You can find the complete notebook with working code here:
π [GitHub Repository](python.ipynb)
---
## π Topics Covered
### β
**1. Print Statement**
- Using `'single'`, `"double"`, and `'''triple'''` quotes
- Printing strings, numbers, and special characters
### β
**2. Comments**
- Single-line comments using `#`
- Multi-line comments using `''' '''` or `""" """`
### β
**3. Variables**
- Naming conventions
- Assigning different types of values
- Case sensitivity
### β
**4. Data Types & User Input**
- Input from user using `input()`
- Type conversion with `int()`, `float()`, and `eval()`
- Using `type()` to identify data types
### β
**5. Type Casting**
- Implicit and Explicit conversions
- Converting between strings, integers, and floats
### β
**6. Operators**
- Arithmetic: `+`, `-`, `*`, `/`, `//`, `%`, `**`
- Comparison: `==`, `!=`, `<`, `>`, `<=`, `>=`
- Logical: `and`, `or`, `not`
- Assignment: `=`, `+=`, `-=`, etc.
- Identity: `is`, `is not`
- Membership: `in`, `not in`
- Bitwise: `&`, `|`, `^`, `~`, `<<`, `>>`
### β
**7. Conditional Statements**
- `if`, `else`, `elif`
- Nested if statements
- Short-hand if and if-else
---
## π‘ Problem Solving Practice
- Displaying a personβs name, age, and address
- Swapping variables (two methods)
- Converting float to integer
- Creating a student ID card form
- Type conversions from int to float
- Checking if number is positive or negative
- Odd or even number checker
- Area calculator (circle, rectangle, triangle)
- Vowel checker
- Digit count checker (1β5 digits)
---
## π― Why This Matters?
Python is the backbone of modern Data Analytics. Mastering these basics builds a strong foundation for advanced libraries like NumPy, Pandas, and tools like Power BI, SQL, and Excel. This is a part of my learning journey, and I'm sharing it to help others who are just starting.
---
## π Connect With Me
- πΌ [LinkedIn](www.linkedin.com/in/ishmal-shahid)
- π [GitHub](https://github.com/Ishmal793?tab=repositories)
Feel free to explore the code and star the repo if you find it helpful β
## π Folder Structure
```bash
π python-basics/
β
βββ python_basics.ipynb # Jupyter Notebook with all examples and problems
βββ README.md # Youβre here!