Computer Science, asked by chiaralee2002, 1 year ago

Edhesive 3.3 Code Practice: Question 2

Answers

Answered by sebastianhoz
98

Answer:

Here you go

Explanation:

# 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.")

Answered by dablu8970choubay
2

Answer:

Explanation:

question 1)x = float(input ("Enter a number: "))

if (x>45.6):

  print("Greater than 45.6")

Question 2)

x = float(input ("Enter a number:98 "))

if (x>= 90):

  print ("Great!")

Question 3)

pswd = input("Enter the Password: ")

if(pswd=="Ada Lovelace"):

  print ("Correct!")

else:

print ("Not Correct")

#SPJ3

Similar questions