Question: Python 1. a. C. Write Python code that does the following: Assigns the values 3, 4 and 5 to the variables a, b and c,

Python Python 1. a. C. Write Python code that does the following: Assigns

1. a. C. Write Python code that does the following: Assigns the values 3, 4 and 5 to the variables a, b and c, respectively. b. Write an if statement that prints "OK" if a is less than b Write an if statement that prints "OK" ifcis less than b d. Write an if statement that prints "OK" if the sum of a and b is equal to c Write an if statement that prints "OK" if the sum of a squared and b squared equals c squared. Repeat the previous problem with the additional requirement that "NOT OK" is printed if the condition is false. e. 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!