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, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
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
History, 30.03.2021 19:00
question
History, 30.03.2021 19:00
question
Physics, 30.03.2021 19:00
question
Mathematics, 30.03.2021 19:00
question
Mathematics, 30.03.2021 19:00
question
Chemistry, 30.03.2021 19:00
question
Mathematics, 30.03.2021 19:00