diff --git a/learning_python3.md b/learning_python3.md index eacb6d5..18023ff 100644 --- a/learning_python3.md +++ b/learning_python3.md @@ -69,6 +69,7 @@ There is a plethora of IDE's available and you can't really make a *wrong* choic TODO animated overview of the shell and the world of OOP + # Installing pycharm TODO @@ -168,6 +169,7 @@ print("Hello, my name is {} and I'm {} years old.".format(name, age)) ## Some links to read up * [realpython string formatting](https://realpython.com/python-string-formatting/) +* [realpython data types](https://realpython.com/python-data-types/) # Taking input @@ -363,27 +365,34 @@ True ⛑ **Remember CTRL-q opens the documentation in Pycharm and don't forget to actually use it!** +## Some links to read up on + +* [realpython](https://realpython.com/python-conditional-statements/) conditional logic + # Coding challenge - Celsius to Fahrenheit converter Your first challenge! -I would like you to write a program that converts celcius to farenheit. +I would like you to write a program that converts Celsius to Fahrenheit. The result of this program *could* be as follows. ```bash -➜ ~ git:(master) ✗ python3 ex_celcius_to_farenheit.py +➜ ~ git:(master) ✗ python3 ex_celcius_to_fahrenheit.py What's the temperature?30 30°C equals 86.0°F Go turn off the heating! -➜ ~ git:(master) ✗ python3 ex_celcius_to_farenheit.py +➜ ~ git:(master) ✗ python3 ex_celcius_to_fahrenheit.py What's the temperature?4 4°C equals 39.2°F Brrrr, that's cold! -➜ ~ git:(master) ✗ python3 ex_celcius_to_farenheit.py +➜ ~ git:(master) ✗ python3 ex_celcius_to_fahrenheit.py What's the temperature?blabla I can't understand you... ➜ ~ git:(master) ✗ ``` +If you want to make the program a bit more complex, try adding the reverse as in Fahrenheit to Celsius. +Your first question to the user could then be *in which direction do you want to convert?*. +
Spoiler warning