Computers and Technology
Computers and Technology, 06.03.2020 19:59, deku6

For question 1-3, consider the following program: def tryIt(a ,b = 7) return a + b

#MAIN
n = int(input(‘Enter a number ‘))
Ans = tryIt(n) * 2
Print (ans)

1. What is output of the user enters 2?

2. What is output if the user enters -5?

3. What is output if the user enters 7?

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:50, jumoke26
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors. java.
Answers: 2
image
Computers and Technology, 23.06.2019 07:00, sugaree95
What are three software programs for mobile computing?
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, reaganphelps3
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
Do you know the correct answer?
For question 1-3, consider the following program: def tryIt(a ,b = 7) return a + b

#MAIN...

Questions in other subjects:

Konu
Mathematics, 15.05.2021 05:10
Konu
Mathematics, 15.05.2021 05:20
Konu
Physics, 15.05.2021 05:20
Konu
SAT, 15.05.2021 05:20