What does the .lower do in this code?


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

what does the .lower() do in it?


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


convert to lowercase, in case the user includes uppercase letters


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