Help please! I’ve got a failing grade but I’m having trouble, I just want out of school man,
Solved
Show answers
More tips
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
- H Health and Medicine How to perform artificial respiration?...
- H Health and Medicine 10 Tips for Avoiding Vitamin Deficiency...
- F Food and Cooking How to Properly Cook Buckwheat?...
- F Food and Cooking How Many Grams Are In a Tablespoon?...
- L Leisure and Entertainment Carving: History and Techniques for Creating Vegetable and Fruit Decorations...
- P Photography and Videography How to Choose the Perfect Photo Paper for Your Images?...
Answers on questions: Biology
- B Biology How is cytokinesis similar in plants and animals? A. Both form a new cell wall and membrane. B. Both result in two daughter cells. C. Both require a cell plate for...
- M Mathematics Find the missing value when given (x, -11) and the equation is 2x - y = 5 0 0 -3 -3 3 3 2...
- F French Outfit of the day :)...
- M Mathematics A string reaches from the top of a 14-foot pole to a point 5 feet from the base of the pole. To the nearest tenth, how long is the string?...
- B Business What are two common ways for expressing a sales quota? a. percentage and fraction b. roi and interest c. volume and dollar amount d. bonus and commission...
Ответ:
Ответ:
def func1(x):
return (x-32)*(5/9)
def func2(x):
return (x/2.237)
def main():
x = ""
while x != "x":
choice = input("Enter 1 to convert Fahrenheit temperature to Celsius\n"
"Enter 2 to convert speed from miles per hour to meters per second: ")
if choice == "1":
temp = input("please enter temperature in farenheit: ")
print(func1(float(temp))," degrees celcius.")
elif choice == "2":
speed = input("please enter speed in miles per hour: ")
print(func2(float(speed))," meters per second")
else:
print("error... enter value again...")
x = input("enter x to exit, y to continue")
if __name__ == "__main__":
main()
Explanation:
two function are defines func1 for converting temperature from ferenheit to celcius and func2 to convert speed from miles per hour to meters per second.