Edhesive 3.3 lesson practice
Answers
Answered by
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
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
Social Sciences,
6 months ago
Science,
6 months ago
Chemistry,
6 months ago
Physics,
11 months ago
India Languages,
11 months ago
Social Sciences,
1 year ago
Chemistry,
1 year ago
Social Sciences,
1 year ago