Edhesive 3.6 code practice answers
Answers
Answer:
largest = 0
for i in range(0,6):
b = int(input("Enter a number: "))
if b > largest:
largest = b
print("Largest: ",largest)
Explanation:
It works but not in Edhesive.
Any suggestions?
Answer:
num1 = int(input("Enter a Number: "))
smallest = num1
print("Smallest: " + str(smallest))
num2 = int(input("Enter a Number: "))
if(num2 < smallest): smallest = num2
print("Smallest: " + str(smallest))
num3 = int(input("Enter a Number: "))
if(num3 < smallest): smallest = num3
print("Smallest: " + str(smallest))
num4 = int(input("Enter a Number: "))
if(num4 < smallest): smallest = num4
print("Smallest: " + str(smallest))
num5 = int(input("Enter a Number: "))
if(num5 < smallest): smallest = num5
print("Smallest: " + str(smallest))
num6 = int(input("Enter a Number: "))
if(num6 < smallest): smallest = num6
print("Smallest: " + str(smallest))
Explanation:
trust me bro