-
Notifications
You must be signed in to change notification settings - Fork 0
/
regex.txt
31 lines (19 loc) · 1.22 KB
/
regex.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
A RegEx, or Regular Expression, is a sequence of characters that forms a search pattern.
RegEx can be used to check if a string contains the specified search pattern.
Example:
txt = "The rain in Spain"
x = re.search("^The.*Spain$", txt)
if x:
print("YES! We have a match!")
else:
print("No match")
(1) while true
(2) def get response
(3) message_probability
(4) check all messages
Before the industrial revolution, biologists in England observed that most peppered moths were light in color. After the industrial revolution began, most of the peppered moths observed were dark in color. Which statement best explains the observed change in moth color during the industrial revolution?
answer choices
Light-color moths were more fit for survival because they were less camouflaged against the darkened, soot-covered tree bark
Dark-color moths were more fit for survival because they were less camouflaged against the darkened, soot-covered tree bark.
Light-color moths were more fit for survival because they were more camouflaged against the darkened, soot-covered tree bark.
Dark-color moths were more fit for survival because they were more camouflaged against the darkened, soot-covered tree bark.