![beauty2624](/avatars/15479.jpg)
beauty2624
30.01.2020 •
Computers and Technology
Most modern workers
a. will change their careers, but not their jobs
b. will change their jobs, but not their careers.
c. will change both their jobs and careers
d. will change neither their jobs nor their careers
Solved
Show answers
More tips
- S Style and Beauty What to Do When Hair Starts Falling Out?...
- H Health and Medicine Novomin: What is it and how to use it?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- H Health and Medicine How to Treat Whooping Cough in Children?...
- H Health and Medicine Simple Ways to Lower Cholesterol in the Blood: Tips and Tricks...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
Answers on questions: Computers and Technology
- P Physics A wheel with a tire mounted on it rotates at a constant rate of 2.77 times a second. A tack is stuck in the tire at a distance 0.357m from the rotation axis. noting...
- M Mathematics 12) x – 5 – 10x = -50...
- B Business The supply of headphones is linear and upward sloping, and the demand for headphones is linear and downward sloping. Suppose the government imposes a per-unit tax in...
Ответ:
A program that repeatedly prompts a user for integer numbers :
biggest = none
smallest = none
while True:
input = raw_input(“Enter a number:”)
if(input == “done” break
try:
number = float(inp)
except ValueError:
print “Please enter only numbers”
else
if smallest is None:
smallest = number;
biggest = number;
elif number < smallest:
smallest = number
elif num > largest:
largest = number
Print “Greatest is “, biggest
Print “Smallest is”, smallest
In this program an input is obtained, if it is equal to the word “done”, then the program stops b printing greatest and smallest number in the given input.
If invalid inputs are given then user is prompted to enter valid number. Otherwise the value of smallest and greatest are calculated according to the input using if-else construct.