0% found this document useful (0 votes)
57 views1 page

Python M2 Assignment 2

The document outlines a module assignment solution detailing various data field identifiers and their corresponding data types, such as strings for player names and countries, integers for centuries and match counts, and lists for team compositions. It also includes a dictionary for player statistics, highlighting the use of different data types based on the nature of the information. The assignment emphasizes the importance of selecting appropriate data types for accurate representation of player-related data.

Uploaded by

Aditya Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

Python M2 Assignment 2

The document outlines a module assignment solution detailing various data field identifiers and their corresponding data types, such as strings for player names and countries, integers for centuries and match counts, and lists for team compositions. It also includes a dictionary for player statistics, highlighting the use of different data types based on the nature of the information. The assignment emphasizes the importance of selecting appropriate data types for accurate representation of player-related data.

Uploaded by

Aditya Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Module 2 Assignment Solution

Data field identifier Data type Example Your reason for using this data
type
player_name String Virat Kohli Names may contain letters and any
other characters.
country String India Country name may contain letters
and any other characters.
century Integer 46
number_of_matches integer 259 Number of matches contain integer
value
team List india=["Virat Kohli", A changeable collection of player
"Shubman Gill", names.
"Suryakumar", "Rohit
Sharma", "Umran
Malik", "Hardik Pandya"]
player_stats Dictionary p1={'name':'Virat Kohli', This is a collection of relevant player
'runs':12658, stats.
'4(fours)':120,'6(sixs)':80,
'balls':119,
'role':'Batsmen',
'field':0,’100’:46}
run_rate Float 10.6 Run rate is the runs required per
delivery. This can have decimal
values.

You might also like