Sign In
Ask Question
Todd Molina
Computers & Technology
30 October, 02:28
If (x > 5 AND x < = 10) : print (OK)
+2
Answers (
1
)
Rocco Anthony
30 October, 02:45
0
If (x > 5 AND x < = 10) : print (OK)
This is in Python, and there are errors.
Explanation:
Variable x is not defined. And OK should be within inverted commas and AND should be in lower case, like as below:
x=int (input ("Enter X:"))
if (x>5 and x <=10?) : print ("OK")
If now x is between 5 and 10 or 10, then the output will be OK. or else it might return some exception value as that case is not definitely in try-catch. Always ensure that you have output defined for each case.
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“If (x > 5 AND x < = 10) : print (OK) ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
Universal Containers (UC) has rolled out a Customer Community where customers can ask and answer questions. UC wants to ensure that customer questions are answered in a timely manner. How can the Administrator meet this requirement? A.
Answers (1)
What does the hot end of a 3D printer do?
Answers (1)
In what sense are hardware and software equivalent
Answers (1)
Assume the availability of class named DateManager that provides a static method, printTodaysDate, that accepts no arguments and returns no value. Write a statement that calls printTodaysDate.
Answers (1)
Which category of system software provides a platform for application software to run on? Device Drivers () Utility Software Firmware Operating System
Answers (2)
New Questions in Computers & Technology
Which is a value of the Scrum Manifesto? a. working software over comprehensive documentation b. we provide experiences that challenge and support students c. respect for the individual, striving for excellence and acting with integrity d.
Answers (1)
What screen enables you to customize how files will be saved on your computer? a. Save Options b. Word Options c. Save As Options d. Auto Options
Answers (1)
Arrange the following storage media in descending order of storage capacity:Zip disk, a standard floppy disk, a compact disc, 123, 321,132, 312
Answers (1)
Jacob wants to be a Steamfitter. He just finished his associate's degree. Which best describes what he should do next? A. Get a bachelor's degree. B. Do a three - to five-year apprenticeship. C. Get a master's degree. D.
Answers (2)
what is the difference between a packet filtering firewall and a dynamic stateful inspection firewall?
Answers (1)
Home
»
Computers & Technology
» If (x > 5 AND x < = 10) : print (OK)
Sign In
Sign Up
Forgot Password?