Genel arama etkin değil.
Ana içeriğe git

Python Proje Teslim Ödevi

print("-" * 30)
2.print("1- Celsius to fahrenheit")
3.print("2- Fahrenheit to celsius")
4.print("-" * 30)
5.
6.choice = raw_input("Your choice (1/2): ")
7.
8.if choice == "1":
9.    print("\n# Celsius to Fahrenheit")
10.    celsius = float(raw_input("Degree to convert: "))
11.    fahrenheit = (celsius * 1.8) + 32
12.    print("{} degree celsius is equal to {} degree fahrenheit.".format(celsius, fahrenheit))
13.elif choice == "2":
14.    print("\n# Fahrenheit to Celsius")
15.    fahrenheit = float(raw_input("Degree to convert: "))
16.    celsius = (fahrenheit - 32) / 1.8
17.    print("{} degree fahrenheit is equal to {} degree celsius.".format(fahrenheit, celsius))
18.else:
19.    print("Congratulations! You hacked the super-program.")
Yukardaki kod dizilimindeki hatayı tespit edip, doğru kodlamamayı yazmanızı sizlerden istiyorum.