- https://towardsdatascience.com/the-only-30-methods-you-should-master-to-become-a-pandas-pro-749795084bb2
- https://talesofsyn.com/posts/creating-isometric-rpg-game-backgrounds
- https://martinheinz.dev/blog/39
- https://pradyunsg.me/blog/2023/01/21/thoughts-on-python-packaging/
- https://apirobot.me/posts/what-is-wsgi-and-why-do-you-need-gunicorn-and-nginx-in-django
- https://developer.okta.com/blog/2019/10/21/illustrated-guide-to-oauth-and-oidc
- https://docs.python.org/3/whatsnew/3.11.html#enum
- https://docs.python.org/dev/library/sqlite3.html#sqlite3-default-converters
- https://blog.abdulrah33m.com/prototype-pollution-in-python/
- https://superfastpython.com/parallel-nested-for-loops-in-python/
Find Pythagorean triples (x, y, z) such that x**2 + y**2 == z**2
and x + y + z == n
.
import math
from itertools import combinations
def triples(n):
for x, y in combinations(range(1, n), 2):
z = n - x - y
According to PEP 572, section Scope of the target, the following examples of assignment expressions should be invalid and raise TargetScopeError
.
[i := i+1 for i in range(5)]
Python 3.8.0a1 (tags/v3.8.0a1:e75eeb00b5, Feb 3 2019, 20:47:39) [MSC v.1916 64 bit (AMD64)] on win32