Issue
Dueno = [28957346, 'Juan', 'Perez', 4789689, 'Belgrano 101']
dni = 26000000
print('Su dni es: ')
input()
for elementos in Dueno:
if dni > 26000000:
print(Dueno[3])
else:
break
I'm trying to show the owner's phone if the ID is greater than 26000000 / but I can't find that, help.
Solution
- Your
dni
variable is not greater than 26000000, so the condition won't pass. - You don't need a for loop here, like at all, its code does nothing with the loop itself.
Answered By - Daniel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.