30 Days Python Roadmap for Data Analysts π
π1
Python Cheatsheet π
1οΈβ£ Variables & Data Types
x = 10 (Integer)
y = 3.14 (Float)
name = "Python" (String)
is_valid = True (Boolean)
items = [1, 2, 3] (List)
data = (1, 2, 3) (Tuple)
person = {"name": "Alice", "age": 25} (Dictionary)
2οΈβ£ Operators
Arithmetic: +, -, *, /, //, %, **
Comparison: ==, !=, >, <, >=, <=
Logical: and, or, not
Membership: in, not in
3οΈβ£ Control Flow
If-Else:
if age > 18:
print("Adult")
elif age == 18:
print("Just turned 18")
else:
print("Minor")
Loops:
for i in range(5):
print(i)
while x < 10:
x += 1
4οΈβ£ Functions
Defining & Calling:
def greet(name):
return f"Hello, {name}"
print(greet("Alice"))
Lambda Functions: add = lambda x, y: x + y
5οΈβ£ Lists & Dictionary Operations
Append: items.append(4)
Remove: items.remove(2)
List Comprehension: [x**2 for x in range(5)]
Dictionary Access: person["name"]
6οΈβ£ File Handling
Read File:
with open("file.txt", "r") as f:
content = f.read()
Write File:
with open("file.txt", "w") as f:
f.write("Hello, World!")
7οΈβ£ Exception Handling
try:
result = 10 / 0
except ZeroDivisionError:
print("Cannot divide by zero!")
finally:
print("Done")
8οΈβ£ Modules & Packages
Importing:
import math
print(math.sqrt(25))
Creating a Module (mymodule.py):
def add(x, y):
return x + y
Usage: from mymodule import add
9οΈβ£ Object-Oriented Programming (OOP)
Defining a Class:
class Person:
def init(self, name, age):
self.name = name
self.age = age
def greet(self):
return f"Hello, my name is {self.name}"
Creating an Object: p = Person("Alice", 25)
π Useful Libraries
NumPy: import numpy as np
Pandas: import pandas as pd
Matplotlib: import matplotlib.pyplot as plt
Requests: import requests
Python Resources: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L
ENJOY LEARNING ππ
1οΈβ£ Variables & Data Types
x = 10 (Integer)
y = 3.14 (Float)
name = "Python" (String)
is_valid = True (Boolean)
items = [1, 2, 3] (List)
data = (1, 2, 3) (Tuple)
person = {"name": "Alice", "age": 25} (Dictionary)
2οΈβ£ Operators
Arithmetic: +, -, *, /, //, %, **
Comparison: ==, !=, >, <, >=, <=
Logical: and, or, not
Membership: in, not in
3οΈβ£ Control Flow
If-Else:
if age > 18:
print("Adult")
elif age == 18:
print("Just turned 18")
else:
print("Minor")
Loops:
for i in range(5):
print(i)
while x < 10:
x += 1
4οΈβ£ Functions
Defining & Calling:
def greet(name):
return f"Hello, {name}"
print(greet("Alice"))
Lambda Functions: add = lambda x, y: x + y
5οΈβ£ Lists & Dictionary Operations
Append: items.append(4)
Remove: items.remove(2)
List Comprehension: [x**2 for x in range(5)]
Dictionary Access: person["name"]
6οΈβ£ File Handling
Read File:
with open("file.txt", "r") as f:
content = f.read()
Write File:
with open("file.txt", "w") as f:
f.write("Hello, World!")
7οΈβ£ Exception Handling
try:
result = 10 / 0
except ZeroDivisionError:
print("Cannot divide by zero!")
finally:
print("Done")
8οΈβ£ Modules & Packages
Importing:
import math
print(math.sqrt(25))
Creating a Module (mymodule.py):
def add(x, y):
return x + y
Usage: from mymodule import add
9οΈβ£ Object-Oriented Programming (OOP)
Defining a Class:
class Person:
def init(self, name, age):
self.name = name
self.age = age
def greet(self):
return f"Hello, my name is {self.name}"
Creating an Object: p = Person("Alice", 25)
π Useful Libraries
NumPy: import numpy as np
Pandas: import pandas as pd
Matplotlib: import matplotlib.pyplot as plt
Requests: import requests
Python Resources: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L
ENJOY LEARNING ππ
π5π1
Evolution of Programming Languagesπ₯οΈ
π°Programming Languagesπ°
1. JAVA:
More than 85% android apps are created using JAVA. It is also used in big (big means big) websites. It is a portable programming language which makes it easy to use on multi platforms.
2. Java Script:
Its a browser/client side language. It makes the webpage more interactive. Like for example when you enter a comment on Facebook then the whole page doesnβt load., just that comment is added. This kind of functionalities are added into webpages with JavaScript. Javascript brought about a revolution in webapps.
3. Assembly Language:
The most low level programming language because its nothing more than machine code written in human readable form. Its hard to write and you need to have deep understanding of computers to use this because you are really talking with it. Its very fast in terms of execution.
4. C:
Its a low level language too thatβs why its fast. It is used to program operating system, computer games and software which need to be fast. It is hard to write but gives you more control of your computer.
5. C++ :
Its C with more features and those features make it more complex.
6. Perl:
A language which was developed to create small scripts easily . Programming in Perl is easy and efficient but the programs are comparatively slower.
7. Python:
Perl was made better and named Python. Its easy, efficient and flexible. You can automate things with python in a go.
8. Ruby:
Its similar to Python but it became popular when they created a web application development framework named Rails which lets developers to write their web application conveniently.
9. HTML and CSS:
HTML and CSS are languages not programming languages because they are just used display things on a website. They do not do any actual processing. HTML is used to create the basic structure of the website and then CSS is used to make it look good.
10. PHP:
It is used to process things in a website. It is server-sided language as it doesnβt get executed in user browser, but on the server. It can be used to generate dynamic webpage content.
11. SQL:
This is not exactly a programming language. It is used to interact with databases.
β‘οΈ This list could be long because there are too many programming language but I introduced you to the popular ones.
βWhich Language Should Be Your First Programming Language?
β Suggestions..
1. Getting Started
Learn HTML & CSS. They are easy and will give you a basic idea of how programming works. You will be able to create your own webpages. After HTML you can go with PHP and SQL, so will have a good grasp over web designing and then you can go with python, C or Java. I assure you that PHP, HTML and SQL will be definitely useful in your hacking journey.
2. Understanding Computer And Programming Better
C..The classic C! C is one of the most foundational languages. If you learn C, you will have a deep knowledge of Computers and you will have a greater understanding of programming too, that will make you a better programmer. You will spend most of your time compiling though (just trying to crack a joke).
3. Too Eager To Create Programs?
Python! Python is very easy to learn and you can create a program which does something instead of programming calculators. Well Python doesnβt start you from the basics but with if you know python, you will be able to understand other languages better. One benefit of python is that you donβt need to compile the script to run it, just write one and run it.
Join for more: https://whatsapp.com/channel/0029VahiFZQ4o7qN54LTzB17
π°Programming Languagesπ°
1. JAVA:
More than 85% android apps are created using JAVA. It is also used in big (big means big) websites. It is a portable programming language which makes it easy to use on multi platforms.
2. Java Script:
Its a browser/client side language. It makes the webpage more interactive. Like for example when you enter a comment on Facebook then the whole page doesnβt load., just that comment is added. This kind of functionalities are added into webpages with JavaScript. Javascript brought about a revolution in webapps.
3. Assembly Language:
The most low level programming language because its nothing more than machine code written in human readable form. Its hard to write and you need to have deep understanding of computers to use this because you are really talking with it. Its very fast in terms of execution.
4. C:
Its a low level language too thatβs why its fast. It is used to program operating system, computer games and software which need to be fast. It is hard to write but gives you more control of your computer.
5. C++ :
Its C with more features and those features make it more complex.
6. Perl:
A language which was developed to create small scripts easily . Programming in Perl is easy and efficient but the programs are comparatively slower.
7. Python:
Perl was made better and named Python. Its easy, efficient and flexible. You can automate things with python in a go.
8. Ruby:
Its similar to Python but it became popular when they created a web application development framework named Rails which lets developers to write their web application conveniently.
9. HTML and CSS:
HTML and CSS are languages not programming languages because they are just used display things on a website. They do not do any actual processing. HTML is used to create the basic structure of the website and then CSS is used to make it look good.
10. PHP:
It is used to process things in a website. It is server-sided language as it doesnβt get executed in user browser, but on the server. It can be used to generate dynamic webpage content.
11. SQL:
This is not exactly a programming language. It is used to interact with databases.
β‘οΈ This list could be long because there are too many programming language but I introduced you to the popular ones.
βWhich Language Should Be Your First Programming Language?
β Suggestions..
1. Getting Started
Learn HTML & CSS. They are easy and will give you a basic idea of how programming works. You will be able to create your own webpages. After HTML you can go with PHP and SQL, so will have a good grasp over web designing and then you can go with python, C or Java. I assure you that PHP, HTML and SQL will be definitely useful in your hacking journey.
2. Understanding Computer And Programming Better
C..The classic C! C is one of the most foundational languages. If you learn C, you will have a deep knowledge of Computers and you will have a greater understanding of programming too, that will make you a better programmer. You will spend most of your time compiling though (just trying to crack a joke).
3. Too Eager To Create Programs?
Python! Python is very easy to learn and you can create a program which does something instead of programming calculators. Well Python doesnβt start you from the basics but with if you know python, you will be able to understand other languages better. One benefit of python is that you donβt need to compile the script to run it, just write one and run it.
Join for more: https://whatsapp.com/channel/0029VahiFZQ4o7qN54LTzB17
π1
Don't overwhelm to learn Git,π
Git is only this muchππ
1.Core:
β’ git init
β’ git clone
β’ git add
β’ git commit
β’ git status
β’ git diff
β’ git checkout
β’ git reset
β’ git log
β’ git show
β’ git tag
β’ git push
β’ git pull
2.Branching:
β’ git branch
β’ git checkout -b
β’ git merge
β’ git rebase
β’ git branch --set-upstream-to
β’ git branch --unset-upstream
β’ git cherry-pick
3.Merging:
β’ git merge
β’ git rebase
4.Stashing:
β’ git stash
β’ git stash pop
β’ git stash list
β’ git stash apply
β’ git stash drop
5.Remotes:
β’ git remote
β’ git remote add
β’ git remote remove
β’ git fetch
β’ git pull
β’ git push
β’ git clone --mirror
6.Configuration:
β’ git config
β’ git global config
β’ git reset config
7. Plumbing:
β’ git cat-file
β’ git checkout-index
β’ git commit-tree
β’ git diff-tree
β’ git for-each-ref
β’ git hash-object
β’ git ls-files
β’ git ls-remote
β’ git merge-tree
β’ git read-tree
β’ git rev-parse
β’ git show-branch
β’ git show-ref
β’ git symbolic-ref
β’ git tag --list
β’ git update-ref
8.Porcelain:
β’ git blame
β’ git bisect
β’ git checkout
β’ git commit
β’ git diff
β’ git fetch
β’ git grep
β’ git log
β’ git merge
β’ git push
β’ git rebase
β’ git reset
β’ git show
β’ git tag
9.Alias:
β’ git config --global alias.<alias> <command>
10.Hook:
β’ git config --local core.hooksPath <path>
β Best Telegram channels to get free coding & data science resources
https://t.iss.one/addlist/4q2PYC0pH_VjZDk5
β Free Courses with Certificate:
https://t.iss.one/free4unow_backup
Git is only this muchππ
1.Core:
β’ git init
β’ git clone
β’ git add
β’ git commit
β’ git status
β’ git diff
β’ git checkout
β’ git reset
β’ git log
β’ git show
β’ git tag
β’ git push
β’ git pull
2.Branching:
β’ git branch
β’ git checkout -b
β’ git merge
β’ git rebase
β’ git branch --set-upstream-to
β’ git branch --unset-upstream
β’ git cherry-pick
3.Merging:
β’ git merge
β’ git rebase
4.Stashing:
β’ git stash
β’ git stash pop
β’ git stash list
β’ git stash apply
β’ git stash drop
5.Remotes:
β’ git remote
β’ git remote add
β’ git remote remove
β’ git fetch
β’ git pull
β’ git push
β’ git clone --mirror
6.Configuration:
β’ git config
β’ git global config
β’ git reset config
7. Plumbing:
β’ git cat-file
β’ git checkout-index
β’ git commit-tree
β’ git diff-tree
β’ git for-each-ref
β’ git hash-object
β’ git ls-files
β’ git ls-remote
β’ git merge-tree
β’ git read-tree
β’ git rev-parse
β’ git show-branch
β’ git show-ref
β’ git symbolic-ref
β’ git tag --list
β’ git update-ref
8.Porcelain:
β’ git blame
β’ git bisect
β’ git checkout
β’ git commit
β’ git diff
β’ git fetch
β’ git grep
β’ git log
β’ git merge
β’ git push
β’ git rebase
β’ git reset
β’ git show
β’ git tag
9.Alias:
β’ git config --global alias.<alias> <command>
10.Hook:
β’ git config --local core.hooksPath <path>
β Best Telegram channels to get free coding & data science resources
https://t.iss.one/addlist/4q2PYC0pH_VjZDk5
β Free Courses with Certificate:
https://t.iss.one/free4unow_backup
π2
Everything you need to learn Python for FREE β
Python Resources: https://lnkd.in/gQk8siKn
Python Projects: https://lnkd.in/dbbReX7H
Web Development: https://lnkd.in/gj3dmvgQ
Data Analysts: https://lnkd.in/ds3J-w4b
Data Science: https://lnkd.in/g2Fjzbma
Machine Learning: https://lnkd.in/ddhUzMGC
Python for Data Science: https://lnkd.in/dNSst9s7
Artificial Intelligence: https://lnkd.in/dyEZQwXv
FREE Courses: https://lnkd.in/gMGmeB-2
Like for more β₯οΈ
Python Resources: https://lnkd.in/gQk8siKn
Python Projects: https://lnkd.in/dbbReX7H
Web Development: https://lnkd.in/gj3dmvgQ
Data Analysts: https://lnkd.in/ds3J-w4b
Data Science: https://lnkd.in/g2Fjzbma
Machine Learning: https://lnkd.in/ddhUzMGC
Python for Data Science: https://lnkd.in/dNSst9s7
Artificial Intelligence: https://lnkd.in/dyEZQwXv
FREE Courses: https://lnkd.in/gMGmeB-2
Like for more β₯οΈ
β€2π2
π΄ How to MASTER a programming language using ChatGPT: π
1. Can you provide some tips and best practices for writing clean and efficient code in [lang]?
2. What are some commonly asked interview questions about [lang]?
3. What are the advanced topics to learn in [lang]? Explain them to me with code examples.
4. Give me some practice questions along with solutions for [concept] in [lang].
5. What are some common mistakes that people make in [lang]?
6. Can you provide some tips and best practices for writing clean and efficient code in [lang]?
7. How can I optimize the performance of my code in [lang]?
8. What are some coding exercises or mini-projects I can do regularly to reinforce my understanding and application of [lang] concepts?
9. Are there any specific tools or frameworks that are commonly used in [lang]? How can I learn and utilize them effectively?
10. What are the debugging techniques and tools available in [lang] to help troubleshoot and fix code issues?
11. Are there any coding conventions or style guidelines that I should follow when writing code in [lang]?
12. How can I effectively collaborate with other developers in [lang] on a project?
13. What are some common data structures and algorithms that I should be familiar with in [lang]?
Join for more: https://t.iss.one/AI_Best_Tools
1. Can you provide some tips and best practices for writing clean and efficient code in [lang]?
2. What are some commonly asked interview questions about [lang]?
3. What are the advanced topics to learn in [lang]? Explain them to me with code examples.
4. Give me some practice questions along with solutions for [concept] in [lang].
5. What are some common mistakes that people make in [lang]?
6. Can you provide some tips and best practices for writing clean and efficient code in [lang]?
7. How can I optimize the performance of my code in [lang]?
8. What are some coding exercises or mini-projects I can do regularly to reinforce my understanding and application of [lang] concepts?
9. Are there any specific tools or frameworks that are commonly used in [lang]? How can I learn and utilize them effectively?
10. What are the debugging techniques and tools available in [lang] to help troubleshoot and fix code issues?
11. Are there any coding conventions or style guidelines that I should follow when writing code in [lang]?
12. How can I effectively collaborate with other developers in [lang] on a project?
13. What are some common data structures and algorithms that I should be familiar with in [lang]?
Join for more: https://t.iss.one/AI_Best_Tools
π4