-
Notifications
You must be signed in to change notification settings - Fork 0
Q1 Write a function, add_up(), which takes one integer as input and returns the sum of the integersfrom zero to the input parameter.The function should return 0 if a non-integer is passed in. Q2define a list, display numbers which are divisible by 4 and if you find number greater than 120 come out of the loop. list1 = [8, 15, 32, 42, 60, 75, 122…
Ankush0102/python-statement-and-function
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
About
Q1 Write a function, add_up(), which takes one integer as input and returns the sum of the integersfrom zero to the input parameter.The function should return 0 if a non-integer is passed in. Q2define a list, display numbers which are divisible by 4 and if you find number greater than 120 come out of the loop. list1 = [8, 15, 32, 42, 60, 75, 122…
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published