What does the .lower do in this code?


#1

answer = raw_input(“Type left or right and hit ‘Enter’.”).lower()

what does the .lower() do in it?


#2

String.lower() is a string method to switch to lowercase.


#3

convert to lowercase, in case the user includes uppercase letters


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.