subject

#write a function called get_integer that takes as input one #variable, my_var. if my_var can be converted to an integer, #do so and return that integer. if my_var cannot be converted #to an integer, return a message that says, "cannot convert! " # #for example, for "5" as the value of my_var, get_integer would #return the integer 5. if the value of my_var is the string #"boggle.", then get_integer would return a string with the #value "cannot convert! " # #do not use any conditionals or the type() function.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
#write a function called get_integer that takes as input one #variable, my_var. if my_var can be con...
Questions
question
Mathematics, 25.10.2021 01:50
question
Mathematics, 25.10.2021 01:50
question
Mathematics, 25.10.2021 01:50