Question: CHALLENGE ACTIVITY 2 . 1 5 . 2 : Creating a named tuple Define a named tuple player that describes an athlete on a sports

CHALLENGE
ACTIVITY
2.15.2: Creating a named tuple
Define a named tuple player that describes an athlete on a sports team. Include the fields name, number, position, and team.
Learn how our autograder works
5440903943196 qistari.
1 from collections import namedtuple
2
3 Player =|'' Your solution goes here '."
4
5 cam = Player ('Cam Newton', '1', 'Quarterback', 'Carolina Panthers')
6 lebron = Player('Lebron James', '23', 'Small forward', 'Los Angeles Lakers')
8 print (
cam.name
 CHALLENGE ACTIVITY 2.15.2: Creating a named tuple Define a named tuple

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!