Question: please write your python code in herescreenshot your code and test cases, thanks! Problem 7 (10 points) Write a method to chec a number is

please write your python code in herescreenshot your code and test cases, thanks!

please write your python code in herescreenshot your code and test cases,

Problem 7 (10 points) Write a method to chec a number is a triangular number. The method signature should be is_triangle (num) and return either True or False. It is not trivial to check whether a number 1s fr1angular, but we can easily generate them using the formula: Tn:1+2+... +n Problem 8 (10 points) Write a method to nd the sum of all the triangular numbers in an inclusive range. The method signature should be triangle_sum(lower_bound, upper_bound) and return the integer sum. You must also call is_triangle O

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 Programming Questions!