Skip to content

Commit

Permalink
vienna -> wien fix for wttr
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Apr 2, 2024
1 parent 23459c6 commit ebb6b26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lessons/beginners-en/comparisons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ else :

## Winter clothing

The following piece of code is a bit advanced and we won't fully discuss it right now. In order to work with it, you only need to understand that it will load the current temperature in the city of Vienna from the internet into a variable:
The following piece of code is a bit advanced and we won't fully discuss it right now. In order to work with it, you only need to understand that it will load the current temperature in the city of Vienna (written in German as Wien to not confuse with the city Vienna present in the USA) from the internet into a variable:

```python
from urllib.request import urlopen
url = "https://wttr.in/Vienna?format=%t"
url = "https://wttr.in/Wien?format=%t"
temperature = int(urlopen(url).read().decode().strip("°C"))
```

Expand All @@ -218,7 +218,7 @@ Write a program using `if`, `elif` and `else` which prints whether you will need

```python
from urllib.request import urlopen
url = "https://wttr.in/Vienna?format=%t"
url = "https://wttr.in/Wien?format=%t"
temperature = int(urlopen(url).read().decode().strip("°C"))

if temperature >= 20:
Expand Down

0 comments on commit ebb6b26

Please sign in to comment.