Skip to content

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…

Notifications You must be signed in to change notification settings

Ankush0102/python-statement-and-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

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

No packages published

Languages