ModuleNotFoundError: No Module Named ‘mysql’
The MySQL connector is not installed in the Python you are running. Here is how to install the right package, check which…
Try: python lists, javascript functions, syntax error, first project
Plain-English Python guides, from installing it to writing small programs that do real work. Short examples you can copy, run and change.
72 guides
The MySQL connector is not installed in the Python you are running. Here is how to install the right package, check which…
The five TypeErrors dictionaries throw — unhashable type, not subscriptable, not callable, missing arguments and unsupported operand — and the fix for…
This error means your shell has not been set up for conda. Here is what conda init does, why it is needed,…
This error means a library is calling a NumPy alias that was removed in NumPy 1.24. Here is how to identify which…
How if, elif and else work in Python, what counts as true, and the six mistakes that trip beginners up — colons,…
How to scrape a web page with Python responsibly: requests and BeautifulSoup, reading robots.txt, rate limiting, and when to use an API…
RecursionError means your function called itself too many times. Here is how to find the missing base case, when to raise the…
How to check whether a key exists in a Python dictionary, why the in operator beats has_key and try/except, and when .get()…
What graph conductance measures, why a low score means you have found a real community, and how to compute it in Python…
Python has no tuple comprehension. Here is what the parentheses actually create, how to build a tuple from a comprehension, and when…
The core of Python in one page: variables, types, conditions, loops, functions and lists, each with a runnable example and the mistake…
Installed Python on macOS and the terminal still says command not found, or runs the wrong version? python vs python3, Homebrew vs…
Related topics
The fastest way to improve is to read one guide, then build the thing it describes. Start with the basics, or jump straight to a project.