Question: How to make this code in Python case insensitive while True: name = input ( Enter a name: ) if name == done: break if
How to make this code in Python case insensitive
while True:
name = input (" Enter a name: ")
if name == "done":
break
if name in names:
index = names.index(name)
print (f" {name} made a score of {scores[index]} ")
else:
print(f"{name} is not a player")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
