There are various techniques. 1  The best is to use a dictionary that maps strings to functions. 2  Use the built-in function getattr(): import foo getattr(foo, 'bar')() Note that getattr() works on any object, including classes, class instances, modules, and so on.
Botanically, this wonderful fruit belongs to the family of Myrtaceae, of the genus: Psidium. Scientific name: Psidium guajava. During each season, a guava tree bears many, round to ovoid or pear-shaped fruits, each about 5-10 cm long and weigh around 50â200 g. Different cultivar types of guava grown all over the world which may vary widely in flavor, pulp color, and seed composition.
Guava is a source of lycopene. A healthy diet should include 10.5 to 14 cups of fruit each week, according to USDA dietary guidelines. Guava, a relative of the pomegranate, can have a sweet or sour taste that complements both sweet and savory dishes and contributes to your weekly fruit intake. Guava also offers health benefits by helping you reach your recommended intake of several nutrients. Ascorbic Acid One of guava's main health benefits is its ascorbic acid, or vitamin C, content.