Question: ANSWER MUST BE IN PYTHON a) Write a python function, call it add_it_up (), that takes a single integer as input and returns the sum

ANSWER MUST BE IN PYTHON

a) Write a python function, call it add_it_up (), that takes a single integer as input and returns the sum of integers from 0 up that integer.

If a non-integer is passed, it should return 0.

b) show that the sum up to a specific n is equal to n(n+1)/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!