Question: 1. Launch IDLE in your computer, open a new file through IDLE and give it the name lab2sol.py. In lab2sol.py write a Python program to
1. Launch IDLE in your computer, open a new file through IDLE and give it the name lab2sol.py. In lab2sol.py write a Python program to do the following: a. Assign a value of 7.7835 to a variable x and print it. b. Calculate the value of the expression x' +4x - 12 and assign it to a variable result and print it. c. Display the value of result (rounded to 3decimal places) with a suitable message: d. Display the value of result (rounded to nearest integer) with a suitable message. e. Convert result to type int and display the value with a suitable message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
