CHALLENGE ACTIVITY
Creating a named tuple
Define a named tuple Player that describes an athl...
Computers and Technology, 12.08.2020 05:01 adenmoye0910
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.
Player'Lebron James', '23', 'Small forward', Los Angeles Lakers')
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')
7
8 print(cam. name '(# ' + cam. number +') is a + cam position + for the cam. team)
9 print(lebron. name '(# ' + lebron. number +') is a + lebron position + for the lebron. team)
Answers: 3
Computers and Technology, 22.06.2019 09:00
Which best describes the condition under which the unicode output is the same as plain text?
Answers: 3
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
Social Studies, 20.02.2020 02:00
Chemistry, 20.02.2020 02:00
Mathematics, 20.02.2020 02:00
Mathematics, 20.02.2020 02:01
Spanish, 20.02.2020 02:01
Computers and Technology, 20.02.2020 02:01
Health, 20.02.2020 02:01
Mathematics, 20.02.2020 02:01