kaylatunell123
06.03.2020 •
Computers and Technology
Write an if statement that prints the message ""The number is not valid"" if the variable distance is outside the range 100 through 2000(both inclusive).
Solved
Show answers
More tips
- C Computers and Internet iPhone SMS Delivery Report: How to Set It Up...
- C Computers and Internet How to Learn to Type Fast?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
- F Family and Home Parents or Environment: Who Has the Most Influence on a Child s Upbringing?...
- H Health and Medicine Is it true that working with a computer is harmful to your eyesight?...
- H Health and Medicine Boosting Immunity: A Complete Guide on How to Improve Your Body’s Natural Defenses...
- P Philosophy Unidentified Flying Object - What is the Nature of this Phenomenon?...
- C Computers and Internet How to Teach Older Generations to Work with Computers?...
- G Goods and services How to Choose a Coffee Maker? The Ultimate Guide for Coffee Lovers...
- C Computers and Internet Porn Banner: What It Is and How to Get Rid Of It?...
Ответ:
The solution code is written in Python:
if(distance < 100 or distance > 2000): print("The number is not valid")Explanation:
In this question either one of the two conditions (distance < 100 or distance > 2000) is met, the error message should be generated. Python offers the "or" keyword as a logical operator. The "or" keyword will join two conditions and so long as one of them is True, the final outcome will be evaluated to True. For example, if distance = 90 the error message will be printed. If distance is 2500, the error message will also be printed.
Ответ:
I do agree with her partially because it is true that screens and technology only make humans worse socially and emotionally. People can stop seeing each other face to face. But I also disagree because photographs keep great memories and without cameras, we would forget all about that.
Explanation:
You really just choose yourself what you think is wrong or right and if you think cameras are good for people.