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
One of the disadvantages of database processing is the greater impact of failure. If the student database or the learning management system (for example, Blackboard or LMS) at your university is unavailable, how does that affect you?
Answers (1)
Which of the following is NOT an example of a crowdsourcing website? Wikipedia Yelp Ebay Kickstarter
Answers (1)
Tawni made some changes to her file and wants to save the changes in a document with a different title. How can she do this? by using the Save tab by using the Ctrl+S keys by using the Save As tab by using the Ctrl+A keys
Answers (2)
When the or operator connects simple conditions, the compound condition will be true whenever any one of the simple conditions is true?
Answers (1)
Given an int variable k that has already been declared, use a while loop to print a single line consisting of 88 asterisks. Use no variables other than k. k=1; while (k<=88) { System. out. print ('*'); k++; } System. out. println (); T/F
Answers (1)
New Questions in Computers & Technology
You have an interface on a router with the IP address of 192.168.192.10 / 29. What is the broadcast address the hosts will use on this LAN?
Answers (1)
A professional development plan allows an employee to (A) advance to a management position in a company (B) evaluate current skill level and determine what skills are necessary to advance (C) socialize in personal settings with colleagues and
Answers (1)
A user called to inform you that the laptop she purchased yesterday is malfunctioning and will not connect to her wireless network. You personally checked to verify that the wireless worked properly before the user left your office.
Answers (1)
Every employee of your company has a Google account. Your operational team needs to manage a large number of instances on Compute Engine. Each member of this team needs only administrative access to the servers.
Answers (1)
Sebutkan beberapa contoh peralatan komunikasi zaman dahulu beserta dengan keterangannya!
Answers (1)
Home
»
Computers & Technology
» If (x > 5 AND x < = 10) : print (OK)
Sign In
Sign Up
Forgot Password?