Python tutorials

Connecting LLMs to Your Data With Python MCP Servers

The Model Context Protocol (MCP) is a new open protocol that allows AI models to interact with external systems in a standardized, extensible way. In this video course, you’ll install MCP, explore its client-server architecture, and work with its core concepts: prompts, resources, and tools. You’ll then build and test a Python MCP server that queries e-commerce data and integrate it with an AI agent in Cursor to see real tool calls in action. By the end of this video […]

Read more

Quiz: How to Make a Scatter Plot in Python With plt.scatter()

Interactive Quiz ⋅ 11 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of How to Make a Scatter Plot in Python With plt.scatter(). By working through this quiz, you’ll revisit how to use plt.scatter() from Matplotlib’s pyplot submodule, customize markers with the s, c, marker, and alpha parameters, and encode several variables in a single two-dimensional scatter plot. The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. […]

Read more

How to Make a Scatter Plot in Python With plt.scatter()

Visualizing data is a core part of analysis, and Python’s most popular plotting library is Matplotlib. To make a scatter plot, you reach for plt.scatter() from Matplotlib’s pyplot submodule, conventionally aliased as plt. You’ll use it to build both simple two-variable charts and richly customized plots that encode several variables at once. By the end of this tutorial, you’ll understand that: A scatter plot is created by calling plt.scatter() with two array-like sequences for the x and y values. Marker […]

Read more

Quiz: Build a Tic-Tac-Toe Game With Python and Tkinter

Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Build a Tic-Tac-Toe Game With Python and Tkinter. By working through this quiz, you’ll revisit how to design game logic with Python classes, lay out and update Tkinter widgets, and wire up button clicks to a handler through the event loop. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of […]

Read more

Quiz: Context Managers and Using Python’s with Statement

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test what you learned in the video course Context Managers and Using Python’s with Statement. By working through this quiz, you’ll revisit how the with statement runs setup and teardown for you, how to use standard-library context managers like open(), and how to write your own context managers as classes or with the @contextmanager decorator. The quiz contains 8 questions and there is no time limit. You’ll get […]

Read more

Quiz: How to Use the Claude API in Python

Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll test your knowledge of How to Use the Claude API in Python. By working through this quiz, you’ll revisit how to install the anthropic SDK, send prompts to Claude with client.messages.create(), shape responses with a system parameter, and return structured JSON output using a schema or Pydantic. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the […]

Read more

How to Use the Claude API in Python

The fastest way to use the Claude API in Python is to install anthropic, set your API key, and call client.messages.create(). You’ll have a working response in under a minute: Example of Using the Claude API in Python Claude is Anthropic’s large language model, accessible via a clean REST API with an official Python SDK. Unlike heavier AI frameworks that require you to wire up multiple components before    

Read more

Quiz: Tapping Into the Zen of Python

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Tapping Into the Zen of Python. By working through this quiz, you’ll revisit the origins of the poem, the meaning of several aphorisms, and the inside jokes hidden throughout. The questions explore how the principles apply in practice and when it’s okay to bend the rules in the name of practicality. The quiz contains 8 questions and there is no time limit. You’ll get […]

Read more

Quiz: Absolute vs Relative Imports in Python

Interactive Quiz ⋅ 7 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Absolute vs Relative Imports in Python. By working through this quiz, you’ll revisit how Python’s import system resolves modules, the differences between absolute and relative imports, and the PEP 8 conventions for styling import statements. The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total […]

Read more
1 2 3 4 223