IT 116: Introduction to Scripting
Class 27 Ungraded Quiz
-
Write an expression that evaluates to
True
if the string "ox" is contained
in the string pointed to by the string variable team.
-
Write an expression that evaluates to
True
if the string "ox" is
NOT contained
in the string pointed to by the string variable team.
-
What string method returns a new string with all characters converted to lowercase?
-
What string method returns a new string with all characters converted to uppercase?
-
What string method and argument would you use to remove the linefeed character at the end of a string
-
What does
strip()
do?
-
What string method and argument would you use to create a list from a line in a CSV file?