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

organs that expand to fill with air
Commercial farming includes all of the following except
Keisha makes a large sandwich for a family picnic. She takes 1/2 of the sandwich to the picnic.At the picnic, her family eats 3/8 of the whole sandwich. What fr
What government rule allowed states to buy lands they claimed to the west
What are two equivalent forms for 7/10
how does pressure affect the living organisms in the ocean ???
difference 7 7/8- 3 1/4
The region of the country known for subsistence farming, fishing, and shipping was
three way how the local government can conduct advocacy on municipal elections
amber had three eights of a cake left after her party.she wrapped a piece that was one fourth of the original cake for her best friend. what fractional part did