Fonts Every Website Needs ✨
1. Roboto – Clean & Corporate :- https://fonts.google.com/specimen/Roboto
2. Montserrat – Bold & Catchy :- https://fonts.google.com/specimen/Montserrat
3. Open Sans – Perfect for Readability :- https://fonts.google.com/specimen/Open+Sans
4. Lato – Simple Yet Stylish :- https://fonts.google.com/specimen/Lato
5. Inter – Loved by Tech Giants :- https://fonts.google.com/specimen/Inter
6. Poppins – Fresh & Trendy :- https://fonts.google.com/specimen/Poppins
7. Nunito – Clean & Universal :- https://fonts.google.com/specimen/Nunito
1. Roboto – Clean & Corporate :- https://fonts.google.com/specimen/Roboto
2. Montserrat – Bold & Catchy :- https://fonts.google.com/specimen/Montserrat
3. Open Sans – Perfect for Readability :- https://fonts.google.com/specimen/Open+Sans
4. Lato – Simple Yet Stylish :- https://fonts.google.com/specimen/Lato
5. Inter – Loved by Tech Giants :- https://fonts.google.com/specimen/Inter
6. Poppins – Fresh & Trendy :- https://fonts.google.com/specimen/Poppins
7. Nunito – Clean & Universal :- https://fonts.google.com/specimen/Nunito
Python Cheat_Sheet -cheatography.pdf
43.7 KB
Python Cheat Sheet 🥂
React "❤️" For More
React "❤️" For More
🔅 HTML Form Input Types
The <input> HTML element is used to create interactive controls for web-based forms to accept data from the user. A wide variety of input data types and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
The <input> HTML element is used to create interactive controls for web-based forms to accept data from the user. A wide variety of input data types and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
👍1
Thanks for 1.1K Subscribers On TELEGRAM. ❤️
Apna GIFT 🎁 Claim Karlo Jaldi Jaldi Se 😘
Link: https://drive.google.com/file/d/1FK5wKcjrP4DA13UTibMBhBmGF46C9N6j/view?usp=drivesdk
Apna GIFT 🎁 Claim Karlo Jaldi Jaldi Se 😘
Link: https://drive.google.com/file/d/1FK5wKcjrP4DA13UTibMBhBmGF46C9N6j/view?usp=drivesdk
👍2😁1
Here are some interesting facts about Python:
1. *Created in the late 1980s*: Python was first conceived in the late 1980s by Guido van Rossum, a Dutch computer programmer.
2. *Named after Monty Python*: Guido van Rossum was a fan of the British comedy group Monty Python's Flying Circus, and he chose the name "Python" for his new language.
3. *First released in 1991*: The first version of Python, version 0.9.1, was released in 1991.
4. *High-level language*: Python is a high-level language, meaning it abstracts away many low-level details, allowing developers to focus on the logic of their program.
5. *Object-oriented*: Python is an object-oriented language, which means it organizes code into objects that contain data and functions that operate on that data.
6. *Dynamic typing*: Python is dynamically typed, which means you don't need to declare the type of a variable before using it.
7. *Large standard library*: Python has a vast and comprehensive standard library that includes modules for various tasks, such as file I/O, networking, and data structures.
8. *Cross-platform*: Python can run on multiple operating systems, including Windows, macOS, and Linux.
9. *Extensive use in data science and AI*: Python is widely used in data science, machine learning, and artificial intelligence due to its simplicity, flexibility, and extensive libraries, including NumPy, pandas, and scikit-learn.
10. *Large and active community*: Python has a massive and active community, with numerous conferences, meetups, and online forums.
1. *Created in the late 1980s*: Python was first conceived in the late 1980s by Guido van Rossum, a Dutch computer programmer.
2. *Named after Monty Python*: Guido van Rossum was a fan of the British comedy group Monty Python's Flying Circus, and he chose the name "Python" for his new language.
3. *First released in 1991*: The first version of Python, version 0.9.1, was released in 1991.
4. *High-level language*: Python is a high-level language, meaning it abstracts away many low-level details, allowing developers to focus on the logic of their program.
5. *Object-oriented*: Python is an object-oriented language, which means it organizes code into objects that contain data and functions that operate on that data.
6. *Dynamic typing*: Python is dynamically typed, which means you don't need to declare the type of a variable before using it.
7. *Large standard library*: Python has a vast and comprehensive standard library that includes modules for various tasks, such as file I/O, networking, and data structures.
8. *Cross-platform*: Python can run on multiple operating systems, including Windows, macOS, and Linux.
9. *Extensive use in data science and AI*: Python is widely used in data science, machine learning, and artificial intelligence due to its simplicity, flexibility, and extensive libraries, including NumPy, pandas, and scikit-learn.
10. *Large and active community*: Python has a massive and active community, with numerous conferences, meetups, and online forums.
*Python Detailed Roadmap* 🚀
📌 1. Basics
◼ Data Types & Variables
◼ Operators & Expressions
◼ Control Flow (if, loops)
📌 2. Functions & Modules
◼ Defining Functions
◼ Lambda Functions
◼ Importing & Creating Modules
📌 3. File Handling
◼ Reading & Writing Files
◼ Working with CSV & JSON
📌 4. Object-Oriented Programming (OOP)
◼ Classes & Objects
◼ Inheritance & Polymorphism
◼ Encapsulation
📌 5. Exception Handling
◼ Try-Except Blocks
◼ Custom Exceptions
📌 6. Advanced Python Concepts
◼ List & Dictionary Comprehensions
◼ Generators & Iterators
◼ Decorators
📌 7. Essential Libraries
◼ NumPy (Arrays & Computations)
◼ Pandas (Data Analysis)
◼ Matplotlib & Seaborn (Visualization)
📌 8. Web Development & APIs
◼ Web Scraping (BeautifulSoup, Scrapy)
◼ API Integration (Requests)
◼ Flask & Django (Backend Development)
📌 9. Automation & Scripting
◼ Automating Tasks with Python
◼ Working with Selenium & PyAutoGUI
📌 10. Data Science & Machine Learning
◼ Data Cleaning & Preprocessing
◼ Scikit-Learn (ML Algorithms)
◼ TensorFlow & PyTorch (Deep Learning)
📌 11. Projects
◼ Build Real-World Applications
◼ Showcase on GitHub
📌 12. ✅ Apply for Jobs
◼ Strengthen Resume & Portfolio
◼ Prepare for Technical Interviews
Like for more ❤️💪
📌 1. Basics
◼ Data Types & Variables
◼ Operators & Expressions
◼ Control Flow (if, loops)
📌 2. Functions & Modules
◼ Defining Functions
◼ Lambda Functions
◼ Importing & Creating Modules
📌 3. File Handling
◼ Reading & Writing Files
◼ Working with CSV & JSON
📌 4. Object-Oriented Programming (OOP)
◼ Classes & Objects
◼ Inheritance & Polymorphism
◼ Encapsulation
📌 5. Exception Handling
◼ Try-Except Blocks
◼ Custom Exceptions
📌 6. Advanced Python Concepts
◼ List & Dictionary Comprehensions
◼ Generators & Iterators
◼ Decorators
📌 7. Essential Libraries
◼ NumPy (Arrays & Computations)
◼ Pandas (Data Analysis)
◼ Matplotlib & Seaborn (Visualization)
📌 8. Web Development & APIs
◼ Web Scraping (BeautifulSoup, Scrapy)
◼ API Integration (Requests)
◼ Flask & Django (Backend Development)
📌 9. Automation & Scripting
◼ Automating Tasks with Python
◼ Working with Selenium & PyAutoGUI
📌 10. Data Science & Machine Learning
◼ Data Cleaning & Preprocessing
◼ Scikit-Learn (ML Algorithms)
◼ TensorFlow & PyTorch (Deep Learning)
📌 11. Projects
◼ Build Real-World Applications
◼ Showcase on GitHub
📌 12. ✅ Apply for Jobs
◼ Strengthen Resume & Portfolio
◼ Prepare for Technical Interviews
Like for more ❤️💪
❤1👍1
*15 Best Project Ideas for Data Science*📊
🚀 *Beginner Level:*
1. Exploratory Data Analysis (EDA) on Titanic Dataset
2. Netflix Movies/TV Shows Data Analysis
3. COVID-19 Data Visualization Dashboard
4. Sales Data Analysis (CSV/Excel)
5. Student Performance Analysis
🌟 *Intermediate Level:*
6. Sentiment Analysis on Tweets
7. Customer Segmentation using K-Means
8. Credit Score Classification
9. House Price Prediction
10. Market Basket Analysis (Apriori Algorithm)
🌌 *Advanced Level:*
11. Time Series Forecasting (Stock/Weather Data)
12. Fake News Detection using NLP
13. Image Classification with CNN
14. Resume Parser using NLP
15. Customer Churn Prediction
*React ❤️ for more*
🚀 *Beginner Level:*
1. Exploratory Data Analysis (EDA) on Titanic Dataset
2. Netflix Movies/TV Shows Data Analysis
3. COVID-19 Data Visualization Dashboard
4. Sales Data Analysis (CSV/Excel)
5. Student Performance Analysis
🌟 *Intermediate Level:*
6. Sentiment Analysis on Tweets
7. Customer Segmentation using K-Means
8. Credit Score Classification
9. House Price Prediction
10. Market Basket Analysis (Apriori Algorithm)
🌌 *Advanced Level:*
11. Time Series Forecasting (Stock/Weather Data)
12. Fake News Detection using NLP
13. Image Classification with CNN
14. Resume Parser using NLP
15. Customer Churn Prediction
*React ❤️ for more*
I’ve seen so many freshers and freelancers struggling to build a good portfolio.
They waste hours on resumes, websites, and still feel stuck.
That’s why I recommend checking out Peerlist — it’s simple, clean, and made for devs, designers, and builders.
You can link your GitHub, blogs, projects, and everything in one place.
*Check it here: 👉peerlist.io*
They waste hours on resumes, websites, and still feel stuck.
That’s why I recommend checking out Peerlist — it’s simple, clean, and made for devs, designers, and builders.
You can link your GitHub, blogs, projects, and everything in one place.
*Check it here: 👉peerlist.io*
*Let's now understand the A–Z of Python programming concept in more detail:*
*A - Arguments*
Inputs passed to a function. They can be:
- Positional: based on order
- Keyword: specified by name
- Default: pre-defined if not passed
- Variable-length: *args, **kwargs for flexible input.
*B - Built-in Functions*
Predefined functions in Python like:
print(), len(), type(), int(), input(), sum(), sorted(), etc.
They simplify common tasks and are always available without import.
*C - Comprehensions*
Compact syntax for creating sequences:
- List: [x*x for x in range(5)]
- Set: {x*x for x in range(5)}
- Dict: {x: x*x for x in range(5)}
Efficient and Pythonic way to process collections.
*D - Dictionaries*
Key-value data structures:
person = {"name": "Alice", "age": 30}
- Fast lookup by key
- Mutable and dynamic
*E - Exceptions*
Mechanism to handle errors:
try:
1/0
except ZeroDivisionError:
print("Can't divide by zero!")
Improves robustness and debugging.
*F - Functions*
Reusable blocks of code defined using def:
def greet(name):
return f"Hello, {name}"
Encapsulates logic, supports DRY principle.
*G - Generators*
Special functions using yield to return values one at a time:
def countdown(n):
while n > 0:
yield n
n -= 1
Memory-efficient for large sequences.
*H - Higher-Order Functions*
Functions that accept or return other functions:
map(), filter(), reduce()
Custom functions as arguments
*I - Iterators*
Objects you can iterate over:
Must have 'iter()' and 'next()'
Used in for loops, comprehensions, etc.
*J - Join Method*
Combines list elements into a string:
", ".join(["apple", "banana", "cherry"])
# Output: "apple, banana, cherry"
*K - Keyword Arguments*
Arguments passed as key=value pairs:
def greet(name="Guest"):
print(f"Hello, {name}")
greet(name="Alice")
Improves clarity and flexibility.
*L - Lambda Functions*
Anonymous functions:
square = lambda x: x * x
Used in short-term operations like sorting or filtering.
*M - Modules*
Files containing Python code:
import math
print(math.sqrt(16)) # 4.0
Encourages reuse and organization.
*N - NoneType*
Represents "no value":
result = None
if result is None:
print("No result yet")
*O - Object-Oriented Programming (OOP)*
Programming paradigm with classes and objects:
class Dog:
def bark(self):
print("Woof!")
Supports inheritance, encapsulation, polymorphism.
*P - PEP8 (Python Enhancement Proposal 8)*
Python’s official style guide:
- Naming conventions
- Indentation (4 spaces)
- Line length (≤ 79 chars) Promotes clean, readable code.
*Q - Queue (Data Structure)*
FIFO structure used for tasks:
from collections import deque
q = deque()
q.append("task1")
q.popleft()
*R - Range Function*
Used to generate a sequence of numbers:
range(0, 5) # 0, 1, 2, 3, 4
Often used in loops.
*S - Sets*
Unordered collection of unique elements:
s = {1, 2, 3}
s.add(4)
Fast membership testing and operations like union, intersection.
*T - Tuples*
Immutable ordered collections:
coords = (10, 20)
Used when data shouldn't change.
*U - Unpacking*
Splitting collections into variables:
a, b = [1, 2]
Also used in function returns and loops.
*V - Variables*
Named references to data:
x = 10
name = "Alice"
No need to declare type explicitly.
*W - While Loop*
Loop that runs based on a condition:
while count < 5:
count += 1
Useful for indeterminate iteration.
*X - XOR Operation*
Logical exclusive OR, used in bitwise operations:
a = 5 ^ 3 # 6
Returns true if inputs differ.
*Y - Yield Keyword*
Used in generators to return data lazily:
def nums():
yield 1
yield 2
Resumes where it left off.
Z - Zip Function
Combines elements from multiple iterables:
names = ["A", "B"]
scores = [90, 80]
print(list(zip(names, scores)))
# [('A', 90), ('B', 80)]
If this helped, react a ❤️ and I’ll post a quick cheatsheet for Python Programming soon!"
*A - Arguments*
Inputs passed to a function. They can be:
- Positional: based on order
- Keyword: specified by name
- Default: pre-defined if not passed
- Variable-length: *args, **kwargs for flexible input.
*B - Built-in Functions*
Predefined functions in Python like:
print(), len(), type(), int(), input(), sum(), sorted(), etc.
They simplify common tasks and are always available without import.
*C - Comprehensions*
Compact syntax for creating sequences:
- List: [x*x for x in range(5)]
- Set: {x*x for x in range(5)}
- Dict: {x: x*x for x in range(5)}
Efficient and Pythonic way to process collections.
*D - Dictionaries*
Key-value data structures:
person = {"name": "Alice", "age": 30}
- Fast lookup by key
- Mutable and dynamic
*E - Exceptions*
Mechanism to handle errors:
try:
1/0
except ZeroDivisionError:
print("Can't divide by zero!")
Improves robustness and debugging.
*F - Functions*
Reusable blocks of code defined using def:
def greet(name):
return f"Hello, {name}"
Encapsulates logic, supports DRY principle.
*G - Generators*
Special functions using yield to return values one at a time:
def countdown(n):
while n > 0:
yield n
n -= 1
Memory-efficient for large sequences.
*H - Higher-Order Functions*
Functions that accept or return other functions:
map(), filter(), reduce()
Custom functions as arguments
*I - Iterators*
Objects you can iterate over:
Must have 'iter()' and 'next()'
Used in for loops, comprehensions, etc.
*J - Join Method*
Combines list elements into a string:
", ".join(["apple", "banana", "cherry"])
# Output: "apple, banana, cherry"
*K - Keyword Arguments*
Arguments passed as key=value pairs:
def greet(name="Guest"):
print(f"Hello, {name}")
greet(name="Alice")
Improves clarity and flexibility.
*L - Lambda Functions*
Anonymous functions:
square = lambda x: x * x
Used in short-term operations like sorting or filtering.
*M - Modules*
Files containing Python code:
import math
print(math.sqrt(16)) # 4.0
Encourages reuse and organization.
*N - NoneType*
Represents "no value":
result = None
if result is None:
print("No result yet")
*O - Object-Oriented Programming (OOP)*
Programming paradigm with classes and objects:
class Dog:
def bark(self):
print("Woof!")
Supports inheritance, encapsulation, polymorphism.
*P - PEP8 (Python Enhancement Proposal 8)*
Python’s official style guide:
- Naming conventions
- Indentation (4 spaces)
- Line length (≤ 79 chars) Promotes clean, readable code.
*Q - Queue (Data Structure)*
FIFO structure used for tasks:
from collections import deque
q = deque()
q.append("task1")
q.popleft()
*R - Range Function*
Used to generate a sequence of numbers:
range(0, 5) # 0, 1, 2, 3, 4
Often used in loops.
*S - Sets*
Unordered collection of unique elements:
s = {1, 2, 3}
s.add(4)
Fast membership testing and operations like union, intersection.
*T - Tuples*
Immutable ordered collections:
coords = (10, 20)
Used when data shouldn't change.
*U - Unpacking*
Splitting collections into variables:
a, b = [1, 2]
Also used in function returns and loops.
*V - Variables*
Named references to data:
x = 10
name = "Alice"
No need to declare type explicitly.
*W - While Loop*
Loop that runs based on a condition:
while count < 5:
count += 1
Useful for indeterminate iteration.
*X - XOR Operation*
Logical exclusive OR, used in bitwise operations:
a = 5 ^ 3 # 6
Returns true if inputs differ.
*Y - Yield Keyword*
Used in generators to return data lazily:
def nums():
yield 1
yield 2
Resumes where it left off.
Z - Zip Function
Combines elements from multiple iterables:
names = ["A", "B"]
scores = [90, 80]
print(list(zip(names, scores)))
# [('A', 90), ('B', 80)]
If this helped, react a ❤️ and I’ll post a quick cheatsheet for Python Programming soon!"
❤2👍1
Now, let’s move on to next topic in the Python coding challenge.
Operators in Python
Operators are special symbols or keywords that perform operations on variables and values.
Types of Operators in Python:
1. Arithmetic Operators
Used for basic math:
+ (add), - (subtract), * (multiply), / (divide), // (floor divide), % (modulus), ** (power)
a = 10
b = 3
print(a + b) # 13
print(a ** b) # 1000
2. Comparison Operators
Used to compare two values:
==, !=, >, <, >=, <=
x = 5
print(x == 5) # True
print(x != 3) # True
3. Logical Operators
Used to combine conditional statements:
and, or, not
age = 20
print(age > 18 and age < 25) # True
4. Assignment Operators
Used to assign values to variables:
=, +=, -=, *=, /=, etc.
score = 10
score += 5 # score is now 15
Mini Project: Build a Simple Calculator
Let’s apply what we’ve learned!
Task: Build a calculator that asks the user to enter two numbers and an operator, then prints the result.
Approach
1. Take two numbers from the user.
2. Ask for an operator (+, -, *, /).
3. Perform the operation based on what the user entered.
4. Print the result, or shows "Invalid operator!" if the input is wrong.
Python Code:
num1 = float(input("Enter first number: "))
op = input("Enter operator (+, -, *, /): ")
num2 = float(input("Enter second number: "))
if op == "+":
print(num1 + num2)
elif op == "-":
print(num1 - num2)
elif op == "*":
print(num1 * num2)
elif op == "/":
print(num1 / num2)
else:
print("Invalid operator!")
React with ❤️ once you’re ready for the quiz
Operators in Python
Operators are special symbols or keywords that perform operations on variables and values.
Types of Operators in Python:
1. Arithmetic Operators
Used for basic math:
+ (add), - (subtract), * (multiply), / (divide), // (floor divide), % (modulus), ** (power)
a = 10
b = 3
print(a + b) # 13
print(a ** b) # 1000
2. Comparison Operators
Used to compare two values:
==, !=, >, <, >=, <=
x = 5
print(x == 5) # True
print(x != 3) # True
3. Logical Operators
Used to combine conditional statements:
and, or, not
age = 20
print(age > 18 and age < 25) # True
4. Assignment Operators
Used to assign values to variables:
=, +=, -=, *=, /=, etc.
score = 10
score += 5 # score is now 15
Mini Project: Build a Simple Calculator
Let’s apply what we’ve learned!
Task: Build a calculator that asks the user to enter two numbers and an operator, then prints the result.
Approach
1. Take two numbers from the user.
2. Ask for an operator (+, -, *, /).
3. Perform the operation based on what the user entered.
4. Print the result, or shows "Invalid operator!" if the input is wrong.
Python Code:
num1 = float(input("Enter first number: "))
op = input("Enter operator (+, -, *, /): ")
num2 = float(input("Enter second number: "))
if op == "+":
print(num1 + num2)
elif op == "-":
print(num1 - num2)
elif op == "*":
print(num1 * num2)
elif op == "/":
print(num1 / num2)
else:
print("Invalid operator!")
React with ❤️ once you’re ready for the quiz
❤3
❤2
❤1