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
What port does pop3 use
Answers (2)
Which command is used to insert a sound clip into a slide?
Answers (1)
Sniffer turns the NIC of a system to the promiscuous mode so that it listens to all the data transmitted on its segment.
Answers (1)
Describe an unethical situation you might encounter at school. Discuss how you would handle the situation and explain why you would handle it that way.
Answers (1)
Evaluating algebraic expressions 8 (x+2) when x = 6
Answers (1)
New Questions in Computers & Technology
If a company doesn't distribute a computing use policy stating an employer's right to inspect employees' computers freely, including e-mail and Web use, employees have an expectation of privacyA. TrueB. False.
Answers (1)
Give 5 computer input devices and explain how they work
Answers (1)
Take some time to do some research about small businesses in your area. Select one and using HTML design a simple site that educates people on what it has to offer. You will not be able to create a shopping cart or include detailed information.
Answers (1)
Create a program that asks the user to enter grade scores. Use a loop to request each score and add it to a total. Continue accepting scores until the user enters a negative value. Finally, calculate and display the average for the entered scores.
Answers (1)
Green computing involves reducing electricity consumed and environmental waste generated when using a computer. which of the following is a valid strategy for supporting green computing?
Answers (1)
Home
»
Computers & Technology
» If (x > 5 AND x < = 10) : print (OK)
Sign In
Sign Up
Forgot Password?