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
Why is it important to back up data on a computer before you burn-in test the cpu?
Answers (1)
Which of the following targets a specific audience and offers high-quality audio, video, and graphics with optimal performance for sophisticated single-user and networked or Internet multiplayer gamesa. multiplayerb. handheldc. gaming desktopd.
Answers (1)
Best laptops for college [$100-$500 range]?
Answers (2)
Each 4G device has a unique Internet Protocol (IP) address and appears just like any other wired device on a network A. True B. False
Answers (1)
What kind of command can you access from the mini toolbar in Microsoft Word?
Answers (1)
New Questions in Computers & Technology
Which access attack method involves a software program that attempts to discover a system password by the use of an electronic dictionary?
Answers (1)
Which of the following tells the Internet browser what procedure it should follow to access the information contained on a desired page? a. Interface b. Protocol c. TLD d. URL
Answers (1)
Barney, a junior, was interested in studying the study habits of college freshman. To better understand this issue, Barney joined a number of study groups designed for freshman-level courses at his college.
Answers (1)
Which type of software is primarily used to organize a collection of information for easy access? Which type of software is primarily used to organize a collection of information for easy access?
Answers (1)
Difference between multiterm access and single term access for webassign
Answers (1)
Home
»
Computers & Technology
» If (x > 5 AND x < = 10) : print (OK)
Sign In
Sign Up
Forgot Password?