"Q30. How many reptile names (genus or species) contain a lowercase "o" or an uppercase "E"?
Hint - you will have to combine your knowledge of regular expressions with your knowledge of logical expressions to answer this one!"
This could be asking students to use logical expression, although they have not been taught to use grepl:
grepl("o", x) | grepl("E", x)
On the other hand, this could be asking students to use regular expression "alternation", which the practical does not explain, and which in my mind differs from traditional logical expressions:
"Q30. How many reptile names (genus or species) contain a lowercase "o" or an uppercase "E"? Hint - you will have to combine your knowledge of regular expressions with your knowledge of logical expressions to answer this one!"
This could be asking students to use logical expression, although they have not been taught to use
grepl
:On the other hand, this could be asking students to use regular expression "alternation", which the practical does not explain, and which in my mind differs from traditional logical expressions: