Program - function to store the data of IPL match in Namedtuple
Topic: Program - function to store the data of IPL match in Namedtuple
Solution
def store_ipl_date(tuple1): from collections import namedtuple IplData = namedtuple('IplData', 'match toss choice session1 session2 winner') return IplData(*tuple1)
List all Python Programs