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.
A guava is the sweet fruit of the guava tree, which grows in tropical regions of America and Asia. The genus consists of about 100 small trees and shrubs, with the Psidium guajava species being the most cultivated for food.ne is pineapple guava and the other is strawberry guava. Strawberry guava doesn't look like or taste like guava. Pineapple guava looks like guava but is more juicy and sweet. You should try it, it can be found at most groceries.