Edhesive 3.7 Code Practice chatbox answer
instruction: When we read code and predict its output, it is called tracing code.
For this lesson, you will come up with your own challenging algorithm for other students to trace. It must contain at least 5 if statements and use at least one AND or OR boolean condition.
Answers
Answered by
3
Explanation:
largest = None
for i in range(0,6):
d = int(input("Enter a number: "))
if not largest or d > largest:
largest = d
print("Largest: " + str(largest)
Answered by
5
Answer:
largest = None
for i in range(0,6):
d = int(input("Enter a number: "))
if not largest or d > largest:
largest = d
print("Largest: " + str(largest))
if largest < d:
print ("largest: " + str(d))
if largest > d:
print ("largest: " + str(largest))
if largest <= d:
print ("largest: " + str(largest))
if largest >= d:
print ("largest: " + str(largest))
Explanation:
it should get you a 100
Similar questions
Social Sciences,
5 months ago
Geography,
5 months ago
Math,
11 months ago
Social Sciences,
1 year ago
Chemistry,
1 year ago