seed: curriculum content

This commit is contained in:
2026-05-07 14:32:44 +00:00
parent 9258534803
commit ec76f4f56b
100 changed files with 2846 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
def count(s):
"""Count three things in a sentence and return a dict.
Keys:
"length" — total characters in s (including spaces)
"words" — number of whitespace-separated words
"a_count" — count of lowercase 'a's after lowercasing s
Helpers:
len(s) — char count
len(s.split()) — word count
s.lower().count("a") — number of 'a's, case-insensitive
count("Hello andromeda") -> {"length": 15, "words": 2, "a_count": 2}
"""
pass