subject
Computers and Technology, 12.11.2019 01:31 jdeelc

Def addnums(a, b, c = 4): sum_abc = a + b + c + d if sum_abc % 2 == 0: return sum_abc, 'even' if sum_abc > 100: return sum_abc, 'huge' if sum_abc % 2 ! = 0: return sum_abc, 'odd' return sum_abc, 'small' a = 5 b = 10 c = 25 d = 2 r1, r2 = addnums(a, b) print ('1. = ', r1, r2) r1, r2 = addnums(a*2, b*2, c = 8) print ('2. = ', r1, r2) r1, r2 = addnums(a, b, c = 84) print ('3. = ', r1, r2) r1, r2 = addnums(a, b, c = 0) print('4. = ', r1, r2) r1, r2 = addnums(a, b, c = 1000) print('5. = ', r1, r2)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
question
Computers and Technology, 22.06.2019 02:30
The can be used to paste text in any order
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
You know the right answer?
Def addnums(a, b, c = 4): sum_abc = a + b + c + d if sum_abc % 2 == 0: return sum_abc, 'even' if s...
Questions
question
Mathematics, 01.03.2021 01:30
question
Mathematics, 01.03.2021 01:30
question
Geography, 01.03.2021 01:30
Questions on the website: 13722367