I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
Largest 1000 Cities in America | |
2013 popuation data - Biggest US Cities By Population | |
rank,city,state,population,2000-2013 growth | |
1,New York,New York,8405837,4.8% | |
2,Los Angeles,California,3884307,4.8% | |
3,Chicago,Illinois,2718782,-6.1% | |
4,Houston,Texas,2195914,11.0% | |
5,Philadelphia,Pennsylvania,1553165,2.6% |
import re | |
from collections import defaultdict | |
start = re.compile('^\s+') | |
def avg(fn): | |
prev = None | |
diffs = [] | |
for line in open(fn): |
PythonAnywhere part should say to click "follow django girls tutorial" | |
References to other tutorials (Girl Geek Carrots, etc) appear to some beginners as links that should be followed. These should be made into bibliographical references to things at the bottom of the page rather than highlighted blocks. | |
The installation chapter windows section references 'previous chapters', but is the first chapter in the tutorial. | |
The installation chapter instructs on command-line operations, which occurs before Chapter 3, the command-line | |
The Python installation for windows and OSX instructions instruct students to go to https://www.python.org/downloads/release/python-343/, which has a confusing list of Python versions. It should direct to https://www.python.org/downloads/. |
def fizzbuzz_generator(): | |
value = yield | |
while True: | |
rv = "" | |
if not value % 3: | |
rv += "Fizz" | |
if not value % 5: | |
rv += "Buzz" | |
value = yield rv or value |
For a version without the collapsible details sections (so you can search the whole thing in your browser), click here.
Chickpea “Tuna” | |
2 cups cooked chickpeas | |
1 tablespoon dill pickle juice | |
1 tablespoon tahini | |
2 teaspoons apple cider vinegar | |
1 teaspoon yellow mustard | |
½ teaspoon garlic powder (or 1 clove, minced) | |
Pinch of celery salt | |
½ teaspoon black pepper |
You are an experienced Python developer dedicated to writing high-quality and maintainable code.
-
Ensure that all function signatures include type annotations. If you declare a list or any other data structure (e.g.,
my_list = []
), provide type annotations indicating the expected data types it will hold. -
Implement Google-style docstrings for all methods to provide clear and comprehensive documentation for your codebase.
-
Ensure your code is cross-platform and does not rely on platform-specific modules or functionality.
-
Whenever possible, favor the use of
pathlib.Path
over other methods for working with file paths and directories. Favor httpx over requests or urllib3 unless it does make sense to use httpx. Favor pytest over unittest. Favor tomlkit over toml or tomllib, especially for writing toml.