Compare commits
No commits in common. "7479a1034b173a0c95c4202edf0d9e275381d0b3" and "eeb100e485208757a025cc2b220a144f358a5c00" have entirely different histories.
7479a1034b
...
eeb100e485
|
@ -69,7 +69,6 @@ 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
|
||||
|
@ -169,7 +168,6 @@ 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
|
||||
|
||||
|
@ -365,34 +363,27 @@ 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 Celsius to Fahrenheit.
|
||||
I would like you to write a program that converts celcius to farenheit.
|
||||
The result of this program *could* be as follows.
|
||||
|
||||
```bash
|
||||
➜ ~ git:(master) ✗ python3 ex_celcius_to_fahrenheit.py
|
||||
➜ ~ git:(master) ✗ python3 ex_celcius_to_farenheit.py
|
||||
What's the temperature?30
|
||||
30°C equals 86.0°F
|
||||
Go turn off the heating!
|
||||
➜ ~ git:(master) ✗ python3 ex_celcius_to_fahrenheit.py
|
||||
➜ ~ git:(master) ✗ python3 ex_celcius_to_farenheit.py
|
||||
What's the temperature?4
|
||||
4°C equals 39.2°F
|
||||
Brrrr, that's cold!
|
||||
➜ ~ git:(master) ✗ python3 ex_celcius_to_fahrenheit.py
|
||||
➜ ~ git:(master) ✗ python3 ex_celcius_to_farenheit.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?*.
|
||||
|
||||
<details>
|
||||
<summary>Spoiler warning</summary>
|
||||
|
||||
|
|
Loading…
Reference in New Issue