You are on page 1of 1

Sourav De

Module 2 Assignment
Email: souravderockz123@gmail.com

Problem Statement:
Create a list of different data fields and use appropriate Python data types to represent each of
them.

Data field Data Type Examples Reason for using this data type
Identifier

player_name String “Steve Smith” Name may contain letters and any
other characters.

country String “Australia” Country name may contain letters


and any other characters.

format String “Test” Format name may contain letters


and any other characters.

matches Integer 77 Number of matches is an integer,it


cannot be decimal.

average_runs Float 61.8 Average runs can have decimal


values.

player_stats Dictionary p1={‘name’: ‘Steve Smith’, This is a collection of relevant


‘role’: ‘bat’, ‘runs’: 7540, player stats.
‘hs’:239, ‘4’:835, ‘6’:43,}

team List Australia=[“s.smith”, A changeable collection of player


“d.warner”, “a.finch”, names.
“g.maxwell”, “p.cummins”,
“m.starc”]

You might also like