An open API service indexing awesome lists of open source software.

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.

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!