Create a program in Python, called TA_Calculator, that uses a function to calculates the area of a triangle given the base and height measurements. Use the below function to do your calculation: added in images The program should receive the base and the height from the user. Once the user enter a base greater than the height the program should give the user another attempt to enter a base and a height. The program only give the user three attempts to enter the correct base and height on the third attempt the program should display the below message: “You have exhausted your 3 attempts please try again later” If the user enter a base less than height, the program should display the correct triangle area using the given function. Hint: You should use a function, a loop, an if statement, a sentinel value,
Create a
The program should receive the base and the height from the user. Once the user enter a base greater than the height the program should give the user another attempt to enter a base and a height. The program only give the user three attempts to enter the correct base and height on the third attempt the program should display the below message:
“You have exhausted your 3 attempts please try again later”
If the user enter a base less than height, the program should display the correct triangle area using the given function.
Hint: You should use a function, a loop, an if statement, a sentinel value,
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images