Python Cheat Sheet.pdf
677.7 KB
This cheat sheet includes basic python required for data analysis excluding pandas, numpy & other libraries
👍5
Websites and platforms where you can practice Python projects, do hands-on coding, and gain valuable experience
1. w3schools
(https://www.w3schools.com/python): Offers interactive Python courses and coding exercises. Great for beginners.
2. Learn Python (https://learnpython.org/): Good resource for beginners
3. Freecodecamp (https://www.freecodecamp.org/learn/data-analysis-with-python/#data-analysis-with-python-course): Offers Python courses, including those from top universities. You can earn certificates upon completion.
4. Hackerrank (https://www.hackerrank.com/domains/tutorials/10-days-of-python): Offers Python tutorials and coding challenges to practice your skills.
5. Google (https://developers.google.com/edu/python): Free resource to learn python from Google.
6. Project Euler (https://projecteuler.net/): Provides mathematical and computational problems that can be solved with Python. Great for honing your programming skills.
7. Python.org (https://docs.python.org/3/tutorial/index.html): The official Python website has a tutorial section that includes exercises and examples to practice Python concepts.
8. GitHub (https://github.com/): Explore Python repositories, contribute to open-source projects, or start your own Python project to build a portfolio.
9. Kaggle (https://www.kaggle.com/): Offers Python datasets, competitions, and notebooks for data science and machine learning projects.
10. Udemy (https://bit.ly/45q7pxh): Amazing course to master Python in 100 days with coding challenges with certificate. Learn data science, automation, build websites, games and apps!
11. Real Python (https://realpython.com/): Offers tutorials and articles on various Python topics, including practical projects.
Remember that practice is key to mastering Python. Choose projects and exercises that align with your interests and goals, and don't hesitate to explore multiple platforms to diversify your learning experience.
ENJOY LEARNING 👍👍
1. w3schools
(https://www.w3schools.com/python): Offers interactive Python courses and coding exercises. Great for beginners.
2. Learn Python (https://learnpython.org/): Good resource for beginners
3. Freecodecamp (https://www.freecodecamp.org/learn/data-analysis-with-python/#data-analysis-with-python-course): Offers Python courses, including those from top universities. You can earn certificates upon completion.
4. Hackerrank (https://www.hackerrank.com/domains/tutorials/10-days-of-python): Offers Python tutorials and coding challenges to practice your skills.
5. Google (https://developers.google.com/edu/python): Free resource to learn python from Google.
6. Project Euler (https://projecteuler.net/): Provides mathematical and computational problems that can be solved with Python. Great for honing your programming skills.
7. Python.org (https://docs.python.org/3/tutorial/index.html): The official Python website has a tutorial section that includes exercises and examples to practice Python concepts.
8. GitHub (https://github.com/): Explore Python repositories, contribute to open-source projects, or start your own Python project to build a portfolio.
9. Kaggle (https://www.kaggle.com/): Offers Python datasets, competitions, and notebooks for data science and machine learning projects.
10. Udemy (https://bit.ly/45q7pxh): Amazing course to master Python in 100 days with coding challenges with certificate. Learn data science, automation, build websites, games and apps!
11. Real Python (https://realpython.com/): Offers tutorials and articles on various Python topics, including practical projects.
Remember that practice is key to mastering Python. Choose projects and exercises that align with your interests and goals, and don't hesitate to explore multiple platforms to diversify your learning experience.
ENJOY LEARNING 👍👍
👍8
Free Access to our premium Data Science Channel
👇👇
https://whatsapp.com/channel/0029Va4QUHa6rsQjhITHK82y
Amazing premium resources only for my subscribers
🎁 Free Data Science Courses
🎁 Machine Learning Notes
🎁 Python Free Learning Resources
🎁 Learn AI with ChatGPT
🎁 Build Chatbots using LLM
🎁 Learn Generative AI
🎁 Free Coding Certified Courses
Join fast ❤️
ENJOY LEARNING 👍👍
👇👇
https://whatsapp.com/channel/0029Va4QUHa6rsQjhITHK82y
Amazing premium resources only for my subscribers
🎁 Free Data Science Courses
🎁 Machine Learning Notes
🎁 Python Free Learning Resources
🎁 Learn AI with ChatGPT
🎁 Build Chatbots using LLM
🎁 Learn Generative AI
🎁 Free Coding Certified Courses
Join fast ❤️
ENJOY LEARNING 👍👍
👍5
👨💻Websites to Practice Python
Python Basics 👇:
1. http://codingbat.com/python
2. https://www.hackerrank.com/
3. https://www.hackerearth.com/practice/
Practice Problems set :
4. https://projecteuler.net/archives
5. http://www.codeabbey.com/index/task_list
6. http://www.pythonchallenge.com/
Python Basics 👇:
1. http://codingbat.com/python
2. https://www.hackerrank.com/
3. https://www.hackerearth.com/practice/
Practice Problems set :
4. https://projecteuler.net/archives
5. http://www.codeabbey.com/index/task_list
6. http://www.pythonchallenge.com/
7 Baby steps to learn Python:
1. Learn the basics: Start with the fundamentals of Python programming language, such as data types, variables, operators, control structures, and functions.
2. Write simple programs: Start writing simple programs to practice what you have learned. Start with small programs that solve basic problems, such as calculating the factorial of a number, checking whether a number is prime or not, or finding the sum of a sequence of numbers.
3. Work on small projects: Start working on small projects that interest you. These can be simple projects, such as creating a calculator, building a basic game, or automating a task. By working on small projects, you can develop your programming skills and gain confidence.
4. Learn from other people's code: Look at other people's code and try to understand how it works. You can find many open-source projects on platforms like GitHub. Analyze the code, see how it's structured, and try to figure out how the program works.
5. Read Python documentation: Python has extensive documentation, which is very helpful for beginners. Read the documentation to learn more about Python libraries, modules, and functions.
6. Participate in online communities: Participate in online communities like StackOverflow, Reddit, or Python forums. These communities have experienced programmers who can help you with your doubts and questions.
7. Keep practicing: Practice is the key to becoming a good programmer. Keep working on projects, practicing coding problems, and experimenting with different techniques. The more you practice, the better you'll get.
Best Resource to learn Python
Freecodecamp Python ML Course with FREE Certificate
Python for Data Analysis
Python course for beginners by Microsoft
Scientific Computing with Python
Python course by Google
Python Free Resources
Please give us credits while sharing: -> https://news.1rj.ru/str/free4unow_backup
ENJOY LEARNING 👍👍
1. Learn the basics: Start with the fundamentals of Python programming language, such as data types, variables, operators, control structures, and functions.
2. Write simple programs: Start writing simple programs to practice what you have learned. Start with small programs that solve basic problems, such as calculating the factorial of a number, checking whether a number is prime or not, or finding the sum of a sequence of numbers.
3. Work on small projects: Start working on small projects that interest you. These can be simple projects, such as creating a calculator, building a basic game, or automating a task. By working on small projects, you can develop your programming skills and gain confidence.
4. Learn from other people's code: Look at other people's code and try to understand how it works. You can find many open-source projects on platforms like GitHub. Analyze the code, see how it's structured, and try to figure out how the program works.
5. Read Python documentation: Python has extensive documentation, which is very helpful for beginners. Read the documentation to learn more about Python libraries, modules, and functions.
6. Participate in online communities: Participate in online communities like StackOverflow, Reddit, or Python forums. These communities have experienced programmers who can help you with your doubts and questions.
7. Keep practicing: Practice is the key to becoming a good programmer. Keep working on projects, practicing coding problems, and experimenting with different techniques. The more you practice, the better you'll get.
Best Resource to learn Python
Freecodecamp Python ML Course with FREE Certificate
Python for Data Analysis
Python course for beginners by Microsoft
Scientific Computing with Python
Python course by Google
Python Free Resources
Please give us credits while sharing: -> https://news.1rj.ru/str/free4unow_backup
ENJOY LEARNING 👍👍
👍5
Python from scratch
by University of Waterloo
0. Introduction
1. First steps
2. Built-in functions
3. Storing and using information
4. Creating functions
5. Booleans
6. Branching
7. Building better programs
8. Iteration using while
9. Storing elements in a sequence
10. Iteration using for
11. Bundling information into objects
12. Structuring data
13. Recursion
https://open.cs.uwaterloo.ca/python-from-scratch/
#python
by University of Waterloo
0. Introduction
1. First steps
2. Built-in functions
3. Storing and using information
4. Creating functions
5. Booleans
6. Branching
7. Building better programs
8. Iteration using while
9. Storing elements in a sequence
10. Iteration using for
11. Bundling information into objects
12. Structuring data
13. Recursion
https://open.cs.uwaterloo.ca/python-from-scratch/
#python
👍1
Guide to Building an AI Agent
1️⃣ 𝗖𝗵𝗼𝗼𝘀𝗲 𝘁𝗵𝗲 𝗥𝗶𝗴𝗵𝘁 𝗟𝗟𝗠
Not all LLMs are equal. Pick one that:
- Excels in reasoning benchmarks
- Supports chain-of-thought (CoT) prompting
- Delivers consistent responses
📌 Tip: Experiment with models & fine-tune prompts to enhance reasoning.
2️⃣ 𝗗𝗲𝗳𝗶𝗻𝗲 𝘁𝗵𝗲 𝗔𝗴𝗲𝗻𝘁’𝘀 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 𝗟𝗼𝗴𝗶𝗰
Your agent needs a strategy:
- Tool Use: Call tools when needed; otherwise, respond directly.
- Basic Reflection: Generate, critique, and refine responses.
- ReAct: Plan, execute, observe, and iterate.
- Plan-then-Execute: Outline all steps first, then execute.
📌 Choosing the right approach improves reasoning & reliability.
3️⃣ 𝗗𝗲𝗳𝗶𝗻𝗲 𝗖𝗼𝗿𝗲 𝗜𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀 & 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀
Set operational rules:
- How to handle unclear queries? (Ask clarifying questions)
- When to use external tools?
- Formatting rules? (Markdown, JSON, etc.)
- Interaction style?
📌 Clear system prompts shape agent behavior.
4️⃣ 𝗜𝗺𝗽𝗹𝗲𝗺𝗲𝗻𝘁 𝗮 𝗠𝗲𝗺𝗼𝗿𝘆 𝗦𝘁𝗿𝗮𝘁𝗲𝗴𝘆
LLMs forget past interactions. Memory strategies:
- Sliding Window: Retain recent turns, discard old ones.
- Summarized Memory: Condense key points for recall.
- Long-Term Memory: Store user preferences for personalization.
📌 Example: A financial AI recalls risk tolerance from past chats.
5️⃣ 𝗘𝗾𝘂𝗶𝗽 𝘁𝗵𝗲 𝗔𝗴𝗲𝗻𝘁 𝘄𝗶𝘁𝗵 𝗧𝗼𝗼𝗹𝘀 & 𝗔𝗣𝗜𝘀
Extend capabilities with external tools:
- Name: Clear, intuitive (e.g., "StockPriceRetriever")
- Denoscription: What does it do?
- Schemas: Define input/output formats
- Error Handling: How to manage failures?
📌 Example: A support AI retrieves order details via CRM API.
6️⃣ 𝗗𝗲𝗳𝗶𝗻𝗲 𝘁𝗵𝗲 𝗔𝗴𝗲𝗻𝘁’𝘀 𝗥𝗼𝗹𝗲 & 𝗞𝗲𝘆 𝗧𝗮𝘀𝗸𝘀
Narrowly defined agents perform better. Clarify:
- Mission: (e.g., "I analyze datasets for insights.")
- Key Tasks: (Summarizing, visualizing, analyzing)
- Limitations: ("I don’t offer legal advice.")
📌 Example: A financial AI focuses on finance, not general knowledge.
7️⃣ 𝗛𝗮𝗻𝗱𝗹𝗶𝗻𝗴 𝗥𝗮𝘄 𝗟𝗟𝗠 𝗢𝘂𝘁𝗽𝘂𝘁𝘀
Post-process responses for structure & accuracy:
- Convert AI output to structured formats (JSON, tables)
- Validate correctness before user delivery
- Ensure correct tool execution
📌 Example: A financial AI converts extracted data into JSON.
8️⃣ 𝗦𝗰𝗮𝗹𝗶𝗻𝗴 𝘁𝗼 𝗠𝘂𝗹𝘁𝗶-𝗔𝗴𝗲𝗻𝘁 𝗦𝘆𝘀𝘁𝗲𝗺𝘀 (𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱)
For complex workflows:
- Info Sharing: What context is passed between agents?
- Error Handling: What if one agent fails?
- State Management: How to pause/resume tasks?
📌 Example:
1️⃣ One agent fetches data
2️⃣ Another summarizes
3️⃣ A third generates a report
Master the fundamentals, experiment, and refine and.. now go build something amazing!
1️⃣ 𝗖𝗵𝗼𝗼𝘀𝗲 𝘁𝗵𝗲 𝗥𝗶𝗴𝗵𝘁 𝗟𝗟𝗠
Not all LLMs are equal. Pick one that:
- Excels in reasoning benchmarks
- Supports chain-of-thought (CoT) prompting
- Delivers consistent responses
📌 Tip: Experiment with models & fine-tune prompts to enhance reasoning.
2️⃣ 𝗗𝗲𝗳𝗶𝗻𝗲 𝘁𝗵𝗲 𝗔𝗴𝗲𝗻𝘁’𝘀 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 𝗟𝗼𝗴𝗶𝗰
Your agent needs a strategy:
- Tool Use: Call tools when needed; otherwise, respond directly.
- Basic Reflection: Generate, critique, and refine responses.
- ReAct: Plan, execute, observe, and iterate.
- Plan-then-Execute: Outline all steps first, then execute.
📌 Choosing the right approach improves reasoning & reliability.
3️⃣ 𝗗𝗲𝗳𝗶𝗻𝗲 𝗖𝗼𝗿𝗲 𝗜𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀 & 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀
Set operational rules:
- How to handle unclear queries? (Ask clarifying questions)
- When to use external tools?
- Formatting rules? (Markdown, JSON, etc.)
- Interaction style?
📌 Clear system prompts shape agent behavior.
4️⃣ 𝗜𝗺𝗽𝗹𝗲𝗺𝗲𝗻𝘁 𝗮 𝗠𝗲𝗺𝗼𝗿𝘆 𝗦𝘁𝗿𝗮𝘁𝗲𝗴𝘆
LLMs forget past interactions. Memory strategies:
- Sliding Window: Retain recent turns, discard old ones.
- Summarized Memory: Condense key points for recall.
- Long-Term Memory: Store user preferences for personalization.
📌 Example: A financial AI recalls risk tolerance from past chats.
5️⃣ 𝗘𝗾𝘂𝗶𝗽 𝘁𝗵𝗲 𝗔𝗴𝗲𝗻𝘁 𝘄𝗶𝘁𝗵 𝗧𝗼𝗼𝗹𝘀 & 𝗔𝗣𝗜𝘀
Extend capabilities with external tools:
- Name: Clear, intuitive (e.g., "StockPriceRetriever")
- Denoscription: What does it do?
- Schemas: Define input/output formats
- Error Handling: How to manage failures?
📌 Example: A support AI retrieves order details via CRM API.
6️⃣ 𝗗𝗲𝗳𝗶𝗻𝗲 𝘁𝗵𝗲 𝗔𝗴𝗲𝗻𝘁’𝘀 𝗥𝗼𝗹𝗲 & 𝗞𝗲𝘆 𝗧𝗮𝘀𝗸𝘀
Narrowly defined agents perform better. Clarify:
- Mission: (e.g., "I analyze datasets for insights.")
- Key Tasks: (Summarizing, visualizing, analyzing)
- Limitations: ("I don’t offer legal advice.")
📌 Example: A financial AI focuses on finance, not general knowledge.
7️⃣ 𝗛𝗮𝗻𝗱𝗹𝗶𝗻𝗴 𝗥𝗮𝘄 𝗟𝗟𝗠 𝗢𝘂𝘁𝗽𝘂𝘁𝘀
Post-process responses for structure & accuracy:
- Convert AI output to structured formats (JSON, tables)
- Validate correctness before user delivery
- Ensure correct tool execution
📌 Example: A financial AI converts extracted data into JSON.
8️⃣ 𝗦𝗰𝗮𝗹𝗶𝗻𝗴 𝘁𝗼 𝗠𝘂𝗹𝘁𝗶-𝗔𝗴𝗲𝗻𝘁 𝗦𝘆𝘀𝘁𝗲𝗺𝘀 (𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱)
For complex workflows:
- Info Sharing: What context is passed between agents?
- Error Handling: What if one agent fails?
- State Management: How to pause/resume tasks?
📌 Example:
1️⃣ One agent fetches data
2️⃣ Another summarizes
3️⃣ A third generates a report
Master the fundamentals, experiment, and refine and.. now go build something amazing!
👍2