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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:00, yolo1430
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
image
Computers and Technology, 23.06.2019 03:30, 890777
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, savannnab1890
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, naomi20044
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
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 in other subjects:

Konu
Mathematics, 21.12.2020 18:30
Konu
Mathematics, 21.12.2020 18:30