Untitled Document
Named Tuples
1. Named Tuples Click Here
       #********* Source Code From Website - Mangadaku - visit us at -http://mangadaku.com/ *****      
       # Named Tuples
       # Just Run the Below code and try to amalyse the ouput 
       
from collections import namedtuple

Color = namedtuple('Color', ['red', 'green', 'blue'])

color = Color(55, 155, 255)
white = Color(255, 255, 255)

print(color.green)
print(white.green)
       
       
Untitled Document