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 19:30
Raveena is making a professional presentation for a newly launched product of her company. she wants to incorporate the following features in her presentation. a) to add serial numbers in each slide b) to add name of her company on top of each slide. c) to add the picture of her product on the second slide(the picture of her product is stored on her computer) write the commands/features of her presentation tool using which she can perform the above operations.
Answers: 2
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
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
Questions on the website: 13722361