Module 2 : Assignment Solutions
Data field Data type example Reason
identifier
player_name string Kieron Pollard Names may contain letters and any other
characters.
country string West Indies Country name may contain letters and any
other characters.
total_runs Integer 7687 Runs is integer
strike_rate float 149.57 Strike rate is calculated and may be float
team list West_indies = Teams players change with time so list
[“[Link]”,”Sunil selected as list is mutable
Narine”,”Chris Gayle”]
p_stats dictionary P1={‘name’:’Kieron These are like key and cupboard pairs so
Pollard’,’role’:’All dictionary type is used
rounder’,’bowling
style’:’spin’}