Computer Science, asked by AkhilAitha71, 11 months ago

Edhesive 3.3 lesson practice

Answers

Answered by eburcham58
8

Answer:

Question 1)

x = int(input("Enter: "))

if (x == 15 or x == 30):

print ("It's payday!")

else:

print ("Sorry, not a payday.")

Question 2)

r = int(input("Enter the red: "))

g = int(input("Enter the green: "))

b = int(input("Enter the blue: "))

if (r > 255 or r < 0):

print("Red number is not correct.")

if (g > 255 or g < 0):

print("Green number is not correct.")

if (b > 255 or b < 0):

print("Blue number is not correct.")

Explanation:

hope this helps

Answered by holwegolivia
10

Answer:

question 1 ) The print (OK) should be print ("OK")

 AND should be and

question 2) not

question 3)  if (x >= -10 and x <= 10):

Explanation:

hope this helps :)

Similar questions