57.5k views
3 votes
What is the code in Edhesive 3.3 question 1?

User Pomeroy
by
5.6k points

1 Answer

1 vote

Answer:

# your code goes here

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

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

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

if( r <= 0 or r >= 255):

print("Red number is not correct.")

if( g <= 0 or g >= 255):

print("Green number is not correct.")

if( b <= 0 or b >= 255):

print("Blue number is not correct.")

User Animesh D
by
4.9k points