-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfacts.py
More file actions
38 lines (34 loc) · 2.27 KB
/
facts.py
File metadata and controls
38 lines (34 loc) · 2.27 KB
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
32
33
34
35
36
37
38
import random
class Facts:
facts = [
"Anteaters can be as small as a squirrel (silky anteater) or up to 7 feet long (giant anteater).",
"Anteaters are toothless creatures.",
"The tongue of an anteater can be up to 2 feet long. It is narrow and covered with tiny spines.",
"Anteaters never destroy anthills to preserve it for future eating.",
"Anteaters have to eat ants quickly or else they will get bitten. As a result, they can flick their tongues 150-160 times a minute.",
"Anteaters' stomachs are specifically designed to grind a large amount of insects at once. It produces formic acid instead of hydrochloric acid (which is normally found in other mammals), and as a result anteaters can eat up to 30,000 insects per day.",
"Anteaters are nearly blind, but make up for it with their excellent sense of smell, which is 40 times better than that of humans.",
"Anteaters have a low body temperature compared to other mammals, at just 32.7 degrees Celsius.",
"Anteaters sleep 15 hours per day.",
"Anteaters have 4-inch-long claws and use them to defend against jaguars and cougars.",
"Anteaters are solitary animals and gather only during mating season. A group of anteaters is called \"parade\".",
"Anteaters can live up to 15 years in the wild and 25 years in captivity.",
"UC Irvine is the only UC in Irvine. (Credit: Jacxk101)",
"UCI is the largest UC of its size.",
"UCI is situated in Irvine, CA, which is known as the technology center of Southern California.",
"Over 104,000 students applied for admission for UCI in 2017!",
"UCI's Aldrich Park contains over 11,000 trees.",
"The word \"zot\" means \"foolish\" in Dutch and \"god\" in Albanian. Zot Zot Zot!",
"UCI is ranked 8th greenest university in the nation!",
"UCI is among Sierra magazine's top 10 \"Cool Schools\" for the eighth straight year."
]
used_facts = []
@classmethod
def get_fact(cls) -> str:
if len(cls.facts) == 0:
cls.facts = cls.used_facts
cls.used_facts = []
fact = cls.facts[random.randrange(0, len(cls.facts))]
cls.facts.remove(fact)
cls.used_facts.append(fact)
return "Did you know? " + fact