+ 1
About tuples in python
You are given a list of contacts, where each contact is represented by a tuple, with the name and age of the contact. Complete the program to get a string as input, search for the name in the list of contacts and output the age of the contact in the format presented below: Sample Input John Sample Output John is 31 Someone should help please with a hint or more explain to the question.
5 Answers
+ 2
Abduljunju
This question is asked mutliple times recently.
Please try to use the search function before asking.
https://www.sololearn.com/discuss/3245242/?ref=app
https://www.sololearn.com/discuss/3234991/?ref=app
If you don't bother to search, at least post your attempt so we can identify what went wrong.
You can follow below instruction to post your code in Q&A.
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
+ 7
What do you know about Tuples? What do the lessons say? How do you access elements in a tuple? How do you search and match them?
+ 5
Alaa Aldeen Shammr Don't provide readymade code give hint motivate them to solve themself.
0
Yes! I want the answer to the last question, because the lesson did not cover it. Thanks
0
Rš š®š³ ok š
But I didn't understand what does he mean.
I just guessed