2017-02-28 HW

posted Feb 28, 2017, 7:05 AM by Samuel Konstantinovich   [ updated Feb 28, 2017, 1:47 PM ]
Updated codingbat:
Now /all will contain all of the problems like /listall will be the same. I will assign the extra two problems at some point, you don't have to do them right now, but can work on it when done. 

Goal: Practice writing string related functions.

Today: Work on the new ones at the bottom. (5 String related problems)

UPDATE HW: Do as many as you can: (If you get stuck on one, do the rest!)

More String and Loops

Replicating Built in String methods


String comparisons: You may use > and < to compare strings!

"a" >= "b"   -> False

"a" < "b"   -> True

How do you write an expression that is true when a variable letter is capital ?

def isCaps( letter ):

 return ????

Comments