Edhesive 3.2 coding practise
Question 1:
Write a program to enter a number and test if it is greater than 45.6 Example:
Enter a number: 90
Output:
Greater than 45.6
Question 2:
Test if a number grade is an A (greater than or equal to 90). If so print "Great!". Example:
Enter a Number: 98
Output:
Great!
Question 3:
Test if a password entered is correct. The secret phrase is Ada Lovelace. Examples:
Enter the Password: Ada Lovelace
Correct!
Enter the Password: Blaise Pascal
Not Correct
Answers
Answered by
3
this question is related to computer but it is too hot that I can't solve it so sorry for that.
Answered by
7
Answer: Question 1
number = float(input("Enter a number"))
if (number > 45.6):
print("Greater than 45.6")
Question 2
value = float(input("Enter a number: "))
if (value >= 90):
print ("Great!")
Explanation:
Similar questions