Strings 0
Calvin (Deutschbein)
W4Mon: 16 Sep
Announcements
- By MONDAY 11:59 PM: "Problem Set 2: Checkers" assignment.
- One Karel problem (probably) using "if" and "while"
- If you haven't finished this yet just turn in what you have.
- One Python problem using arithmetic and (probably) "for"
- It uses 'print' and 'return' and those two things aren't the same!
- One writing problem.
- By next MONDAY 11:59 PM: "Problem Set 3: Strings" assignment.
- It is about strings
- Start now.
- We want to get ahead of the clock on problem sets since there's a project soon.
Announcements
- By MONDAY 11:59 PM: "Problem Set 2: Checkers" assignment.
- One Karel problem (probably) using "if" and "while"
- One Python problem using arithmetic and (probably) "for"
def divisors(n:int) -> int: # this is useful
count = 0
for x in range(2,n):
if n % x == 0:
print(x)
count = count + 1
return count
- One writing problem.
- By next MONDAY 11:59 PM: "Problem Set 3: Strings" assignment.
def n_spaces_before(n:int,s:str) -> NoneType: # print -> None
print(n * ' ', s) # test - that is 'n times space plus s'