May-19-2020, 02:47 AM
My goal is to print only 1 name out of 3 on the list. however, I end up with the wrong results like
ike
ohnson
ennedy
below is my code in python:
names = ["Mike", "Johnson","Kennedy"]
for name in names:
print(name[1:])
ike
ohnson
ennedy
below is my code in python:
names = ["Mike", "Johnson","Kennedy"]
for name in names:
print(name[1:])