Question: IN PYTHON LANGUAGE PLEASE Lab Activity 4.1 Implement a program that requests the current temperature in degrees Fahrenheit from the user and prints the temperature
IN PYTHON LANGUAGE PLEASE
Lab Activity 4.1
Implement a program that requests the current temperature in degrees Fahrenheit from the user and prints the temperature in degrees Celsius using the formula
celsius = 5 / 9 (fahrenheit 32)
Your program should execute as follows:
>>>
Enter the temperature in degrees Fahrenheit: 50
The temperature in degrees Celsius is 10.0
Lab Activity 4.2
Translate these conditional statements into Python if statements:
a) If age is greater 62, print You can get your pension benefits.
b) If name is in list [Musial, Aaron, Williams, Gehrig, Ruth],
print One of the top 5 baseball players, ever!.
c) If hits is greater than 10 and shield is 0, print You are dead.
d) If the Boolean variable north is True, print I can escape.
Lab Activity 4.3
Translate these into Python if/else statements:
a) If year is divisible by 4, print Could be a leap year.; otherwise print Definitely not a leap year.
b) If list ticket is equal to list lottery, print You won!, else print Better luck next time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
