mjburgess
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
147 ms·
- 2101.▲
- 2102.▲
- 2103.▲
- 2104.▲
- 2105.▲
I dont think `class` as a module keyword, in python, sucks. It just requires learning being open to python as python.
Eg., class EG:
NORTH, SOUTH, EAST, WEST = 1, 2, 3, 4
def move(a, b):
return a-b - 2106.▲
- 2107.▲
- 2108.▲
- 2109.▲
- 2110.▲
- 2111.▲
- 2112.▲
- 2113.▲
- 2114.▲
- 2115.▲
- 2116.▲
- 2117.▲
- 2118.▲
- 2119.▲
- 2120.▲
- 2121.▲
- 2122.▲
- 2123.▲
- 2124.▲
- 2125.▲
- 2126.▲
- 2127.▲
- 2128.▲
- 2129.▲
- 2130.▲
More ›