Computers and Technology
Computers and Technology, 09.09.2021 01:20, gary4570

Assign total_owls with the sum of num_owls_A and num_owls_B. Sample output with inputs: 3 4
Number of owls: 7

This is what is given to me
total_owls = 0

num_owls_A = input()
num_owls_B = input()

print('Number of owls:', total_owls)

my code
total_owls = num_owls_A + num_owls_B

That gets me 34 for some reason instead of 7. What am I doing wrong?

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, itsyagirl11076
What is the process in which the software development team compiles information to determine the final product.
Answers: 3
image
Computers and Technology, 22.06.2019 11:00, lexhorton2002
The great length of north america causes the climate to be varied. true false
Answers: 2
image
Computers and Technology, 23.06.2019 00:30, devenybates
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
image
Computers and Technology, 23.06.2019 03:30, bellsbella34
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
Do you know the correct answer?
Assign total_owls with the sum of num_owls_A and num_owls_B. Sample output with inputs: 3 4
...

Questions in other subjects:

Konu
Mathematics, 04.01.2021 14:00
Konu
Mathematics, 04.01.2021 14:00
Konu
Mathematics, 04.01.2021 14:00