+ 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.

21st Oct 2023, 9:54 PM
Abduljunju
5 odpowiedzi
+ 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
22nd Oct 2023, 2:46 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 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?
21st Oct 2023, 10:06 PM
Ausgrindtube
Ausgrindtube - avatar
+ 5
Alaa Aldeen Shammr Don't provide readymade code give hint motivate them to solve themself.
22nd Oct 2023, 6:55 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
0
Yes! I want the answer to the last question, because the lesson did not cover it. Thanks
21st Oct 2023, 10:15 PM
Abduljunju
0
R💠🇮🇳 ok 👌 But I didn't understand what does he mean. I just guessed
22nd Oct 2023, 9:55 AM
Alaa Aldeen Shammr
Alaa Aldeen Shammr - avatar