File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 37
37
string3 = "BEAR"
38
38
string4 = " bEautiful"
39
39
40
- print (string1 .startswidth ("be" ))
41
- print (string2 .startswidth ("be" ))
42
- print (string3 .startswidth ("be" ))
43
- print (string4 .startswidth ("be" ))
40
+ print (string1 .startswith ("be" ))
41
+ print (string2 .startswith ("be" ))
42
+ print (string3 .startswith ("be" ))
43
+ print (string4 .startswith ("be" ))
44
44
45
+
46
+ # Exercise 5
45
47
string1 = string1 .lower ()
48
+ # (string2 will pass unmodified)
46
49
string3 = string2 .lower ()
47
50
string4 = string4 .strip ().lower ()
48
51
49
- print (string1 .startswidth ("be" ))
50
- print (string2 .startswidth ("be" ))
51
- print (string3 .startswidth ("be" ))
52
- print (string4 .startswidth ("be" ))
52
+ print (string1 .startswith ("be" ))
53
+ print (string2 .startswith ("be" ))
54
+ print (string3 .startswith ("be" ))
55
+ print (string4 .startswith ("be" ))
You can’t perform that action at this time.
0 commit comments