Question: CHALLENGE ACTIVITY 3 . 3 . 1 : Tuple basics. Jump to level 1 Color is a named tuple with fields: name, R , G

CHALLENGE
ACTIVITY
3.3.1: Tuple basics.
Jump to level 1
Color is a named tuple with fields: name, R, G, and B. Create color_info as a Color tuple, and initialize color_info with color_name, red_channel, green_channel, and blue_channel as the fields.
Click here for example
from collections import namedtuple
Color = namedtuple ('Color',['name','[:R',?'G',?'B'}
color_name = input ()
red_channel =(input())
green_channel =(input())
blue_channel =(input())
['. Your code goes here '.
print(f'Color name: {color_info.name}, R: {color_info.R}, G: {color_info.G}, B: {color_info.B}')
1
2
3
4
Feedback?
 CHALLENGE ACTIVITY 3.3.1: Tuple basics. Jump to level 1 Color is

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!