Skip to content

Commit

Permalink
Update lab2 (#107)
Browse files Browse the repository at this point in the history
* Update lab2

* Fix typo
  • Loading branch information
giswqs authored Oct 12, 2024
1 parent 60ff581 commit ad917df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion book/labs/lab_02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"source": [
"## Exercise 10: Generating and Analyzing Random Coordinates\n",
"\n",
"- Write a program that generates random coordinates (latitude and longitude between -180 and 180 degrees).\n",
"- Write a program that generates random coordinates (latitude between [-90, 90] degrees and longitude between [-180, 180] degrees).\n",
"- Use a `while` loop to keep generating coordinates until a pair with both latitude and longitude greater than 50 is generated.\n",
"- Print each generated coordinate and the final coordinate that meets the condition."
]
Expand Down
4 changes: 2 additions & 2 deletions book/labs/lab_02.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.2
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down Expand Up @@ -111,7 +111,7 @@ This notebook contains exercises based on the lectures on [**String Operations**

## Exercise 10: Generating and Analyzing Random Coordinates

- Write a program that generates random coordinates (latitude and longitude between -180 and 180 degrees).
- Write a program that generates random coordinates (latitude between [-90, 90] degrees and longitude between [-180, 180] degrees).
- Use a `while` loop to keep generating coordinates until a pair with both latitude and longitude greater than 50 is generated.
- Print each generated coordinate and the final coordinate that meets the condition.

Expand Down

0 comments on commit ad917df

Please sign in to comment.