Sign In
Ask Question
Computers & Technology
Skinny Jeans
24 August, 23:10
If (x > 5 AND x < = 10) : print (OK)
+3
Answers (
1
)
Andy Rubio
25 August, 01:18
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?
Get an answer to your question ✅
“If (x > 5 AND x < = 10) : print (OK) ...”
in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers
You Might be Interested in
What is a task? a piece of hardware physically or wirelessly connected to a computer, such as a hard drive or keyboard a partition on a hard drive; another way to reference a drive letter such as c.
Answers (1)
Your ipad is configured to do remote backups every day to icloud. what conditions are required for the icloud backup to take place? (select three.)
Answers (1)
You work in an office that uses Linux and Windows servers. The network uses the IP protocol. You are sitting at a Windows workstation. An application you are using is unable to connect to a Windows server named FileSrv2.
Answers (1)
Which part of the software hierarchy is working behind the scenes allowing programs to perform tasks? Current machine instruction Currently dispatched threads Dispatchable threads Waiting handlers
Answers (1)
Using 8 bit ascii set what would be the total size in bytes of the words 'Computer Science'?
Answers (1)
New Questions in Computers & Technology
14. By default, table headers will include the arrows shown in the table. What menu option (s) are available when this arrow is clicked? A. Spell check B. Sorting and searching commands C. Formatting and style commands D. Error check
Answers (2)
What percentage of e-waste components contain materials that could be recycled or reused?
Answers (1)
A rocket ship travels at 3000 miles per hour. If it travels for 5.44 hours, how far did it travel?
Answers (2)
Hat are the technical risks and the human risks for the ticktacktoe game
Answers (1)
you are responsible for managing your company's virtualization environment. which feature should not be allowed on a virtualization host?
Answers (1)
Home
»
Computers & Technology
» If (x > 5 AND x < = 10) : print (OK)
Sign In
Sign Up
Forgot Password?