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
: 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
qistari.
from collections import namedtuple
Player Your solution goes here
cam Player Cam Newton', 'Quarterback', 'Carolina Panthers'
lebron PlayerLebron James', 'Small forward', 'Los Angeles Lakers'
print
cam.name
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
