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.
The edible portion of this average avocado weighs 5.4 ounces (153 grams). A typical serving of one-half avocado weighs 2.7 ounces (77 grams).The California avocados typically in the market place are reasonably uniform in size throughout the year.able 1 summarizes 2,839 entries of fruit counts (Fuerte 1,322; Hass 1,517) developed from the described inventory records. As shown in the table, the composite average weight of Fuerte variety avocados is 7.765 ounces; of the Hass variety, 7.584 ounces.