Question: What line of code contains an error? student _ name = Jenna if student _ name ( 0 ) . lower ( ) = =

What line of code contains an error?
student_name = "Jenna"
if student_name(0).lower()=="a":
print('Winner! Name starts with A:', student_name)
elif student_name[0].lower()=="j":
print('Winner! Name starts with J:', student_name)
else:
print('Not a match, try again tomorrow:', student_name)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!