subject

Consider this program: cost1 = input(" enter the first expense: ") cost2 = input(" enter the second expense: ") print("your total for both expenses was", cost1 + cost2) if the user inputs “10” for the first expense and “20” for the second expense, what will the interpreter show in the final line when this program is run? if this result in not what the programmer intended, how would you explain what went wrong?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
You know the right answer?
Consider this program: cost1 = input(" enter the first expense: ") cost2 = input(" enter the secon...
Questions
question
Mathematics, 26.06.2020 15:01
Questions on the website: 13722367