TAYsoRexkless28 TAYsoRexkless28
  • 09-01-2020
  • Computers and Technology
contestada

if (x > 5 AND x <= 10): print (OK)

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 15-01-2020

Answer:

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.

Answer Link

Otras preguntas

Will mark brainliest if right! What are the roots of the equation? x^2=10−3x
And this one to please help me solve this
The US Navy wants to buy a new submarine. What does it need to do to get the funds?
Which sentence best describes this image?
Analyze the solution set for the following system by following the given steps 2X plus Y equals 53Y equals 9-6 packs right each equation in slope intercept form
Which sexually transmitted infection (STI) can be successfully treated with antibiotics?
Who led Germany during the last decade of the 1800s and most of World War I
V = 1/3 π r^2 h for h HELP
In a school 2/3 of the students study a language 2/5 study french find the ratio of students who study french to those who do not study french
Corpse business records