.1. Write a python function, call it add_it_up (), that takes a single integer as input and returns the sumof 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.
2. a) Write a program that reads in "speed" in mph and distance in miles and computes the time it willtake to travel.b) Write a program that plots time vs distance at three different speeds.
3. Read in numbers and store them into a list until the the number -1 is reached.
4. Write a program in python to take a list of of numbers A and put them into a sorted list B, using aselection sort, which finds the smallest number in A and puts it into the first element of the list B. Thenfind the second smallest element of the list and put it into the second element of B, etc.Show how the program works for a list:A = [5, 6,1, 2, 8, 9, 12, 18, 7, 10]