Skip to content

Commit

Permalink
Merge pull request #31 from kaunta/i28
Browse files Browse the repository at this point in the history
add geography section
  • Loading branch information
kaunta committed Feb 8, 2020
2 parents e7069bd + 38002dd commit 484ed43
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion pacific-factbook/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@

print("<h1>", country_name, "</h1>")
print("<figure>", flag.generate(), "</figure>")
print("<p>Location:")

print("<h1>Geography</h1>")
print("<h2>Location</h2>")
print("<p>The pacific ocean</p>")
print("<h2>Geographic coordinates</h2>")
print("<p>")
pos = coordinate.generate()

if pos.latitude > 0:
Expand All @@ -24,6 +29,23 @@
print(f"{pos.longitude:.2f}&deg;.")

print("</p>")
print("<h2>Land boundaries</h2>")
print("<p>0km</p>")
print("<h2>climate</h2>")
print("<p>tropical; hot and humid; wet season May to November</p>")
print("<h2>natural resources</h2>")
print(
"<p>",
random.choice(
[
"forests",
"minerals (especially gold)",
"marine products",
"deep-seabed minerals",
]
),
"</p>",
)

print("<h1>People and Society</h1>")
print(
Expand Down

0 comments on commit 484ed43

Please sign in to comment.