4. Partial verification of strings

1file = "prog.py"
2print(file.startswith("p"))
3print(file.endswith("p"))
4answer = "Yes"
5print(answer.lower())
6print(answer.upper())
7print(answer.lower() in "yes no")
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 4.1 (cl_l18_4_en)

You have attempted 1 of 2 activities on this page