-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment3.py
More file actions
17 lines (12 loc) · 864 Bytes
/
Copy pathassignment3.py
File metadata and controls
17 lines (12 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Task-1:
# Write a short Python program that asks the user to enter Celsius temperature (it can be a decimal number),
# converts the entered temperature into Fahrenheit degree and prints the result.
# celsius = float(input("Please, Enter temperature (℃ ): "))
# fahrenheit = celsius*1.8000 + 32.00
# print(f"The value of {celsius} ℃ is-->{fahrenheit} ℉\nGirdiğiniz: {celsius} ℃ 'nin karşılığı -->{fahrenheit} ℉ 'tır.")
# Task-2:
# Write a short Python program that asks the user to enter a distance (it can be a decimal number)
# in kilometers, converts the entered distance into miles and prints the result.
km = float(input("Please, ENTER distance in km (Lüfen km cinsinden mesafe girin): " ))
mi = km*0.62
print(f"The value of {km} km is-->{mi} miles. \nGirdiğiniz: {km} km'nin karşılığı-->{mi} miles'dır.")