subject

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?

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, miguel3maroghi
This technology is used to produce high-quality documents that look good on the computer screen and in print. wiki presentation paint desktop publishing
Answers: 3
image
Computers and Technology, 22.06.2019 07:00, ayoismeisalex
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
image
Computers and Technology, 22.06.2019 13:30, ReaLily
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, Liantic8738
List the five on-board vehicle subsystems
Answers: 1
You know the right 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
History, 11.11.2020 18:10
Konu
History, 11.11.2020 18:10
Konu
Mathematics, 11.11.2020 18:10