Riju21

30_collection_library

May 12th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from collections import namedtuple
  2.  
  3. colorName = namedtuple('Color', ['red', 'green', 'blue'])
  4. color = (255, 50, 155)
  5. colorval = ''
  6. for i in color:
  7.     colorval += str(i) + ','
  8.  
  9. print(colorval[:-1])
Advertisement
Add Comment
Please, Sign In to add comment