Question
What does re.sub(r'(\w+)', r'_\1_', 'hello world')
return?Solution
The re.sub() function replaces occurrences of a pattern. Here, (\w+) captures each word. In the replacement string r'_\1_', \1 refers to the content of the first (and only) capturing group. Thus, each word is wrapped with underscores.
The monocotyledonous plants can be distinguished from dicotyledonous plants by:
Which of the following is not a stem modification?
Which of the following cucurbits is richest in iron content?
Pea, gulmohur, bean, Cassia have ___ type of symmetry and hance they are ____ flowers.
The organelle responsible for protein synthesis in plant cells is the:Β
When the leaflets are joined together at a common point at the petiole, the type of leaf is
Photosynthesis occurs in which cell organelle of the plant?Β
In monocotyledonous seeds the outer covering of endosperm separates the embryo by a proteinous layer called as
Pungency in radish is due to the presence of
Which of these green manuring crop is stem nodulating?