Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

PyNamedTuple

Language: Layout:
+ ] Show input
Absolute running time: 0.19 sec, cpu time: 0.06 sec, memory peak: 8 Mb, absolute service time: 0,36 sec  
edit mode |  history  | discussion
|||||||||||||||||||||||||||||||||||
Python namedtuple example
Mango summer green 20
Mango
gray
winter
Orange
winter
orange
20
True
True
Fruit(name='Guava', season='rainy', color='green', price='10')
True
True
Fruit(name='Water Melon', season='summer', color='dark green', price='100')
('name', 'season', 'color', 'price')
Fruit(name='Jackfruit', season='summer', color='brown', price='100')
Fruit(name='Jackfruit', season='summer', color='gray', price='100')
May 05 2022
18:20
|||||||||||||||||||||||||||||||||||