Edit typos and grammar and add python files
This commit is contained in:
parent
c1222a8103
commit
991caf0521
16 changed files with 285 additions and 3 deletions
10
thinkcspy/Chapter-2-Exercises/Python-Files/problem12.py
Normal file
10
thinkcspy/Chapter-2-Exercises/Python-Files/problem12.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 2
|
||||
# Problem 12
|
||||
|
||||
fahrenheit = input('What is the temperature in degrees fahrenheit?')
|
||||
F = int(fahrenheit)
|
||||
|
||||
C = (F - 32) * 5/9
|
||||
|
||||
print(F, 'degrees fahrenheit is equivalent to', C, 'degrees celcius.')
|
||||
Loading…
Reference in a new issue