Question: I need some help with these Python questions, please. 1) Consider a right triangle. Write a Python script that can take the length of the
I need some help with these Python questions, please.
1) Consider a right triangle. Write a Python script that can take the length of the hypotenuse, c, and one of the included angles, take B for example, and return the other included angle, in this case A, and the length of the two legs, b and a.
| Input string |
| Enter the length of c: 11 Enter the angle of B: 30 |
| Expected output of script |
| Angle A: 60 Length b: 5.5 Length a: 9.53 |
2) Write a Python script that can start with a hardcoded list of values separated by commas and return the maximum value, minimum value, average value, median value, and sum.
| Hardcoded list |
| numStr = [38,12,43,144,1024,76,1920,1080,255,1440,93,32,64] |
| Expected output |
| Max: 1920 Min: 12 Avg: 478.54 Med: 93
Sum: 6221 |
3) Write a Python script that will prompt for specific words and then combine those words into a short story, like whatever the non-trademarked name for a Mad Lib is. The specific story doesnt matter.
| Input string |
| Enter an adjective: awesome Enter a name: Tim Enter an ing verb: swimming |
| Example output of script |
| There once was a super awesome student named Tim. If you ever saw him swimming, you would be impressed by Tim! |
Thanks!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
