4. The program is a network of roads¶
Print output (drag lower right corner to resize)
|
Activity: CodeLens 4.1 (cl_l30_4_en)


4.1. In the network, you choose your path¶

4.2. Tips¶
The guessing game program only tells you if you guessed correctly or not.
To help it say “High” or “Low” if the person is wrong, how would the path look?

12
print("Welcome")
g = input("Enter a number:")
number = int(g)
if number == 42:
print("You won!")
else:
if number > 42:
print("High")
else:
print("Low")
print("End of game")
Activity: 4.2.1 ActiveCode (ac_l30_4_en)
4.3. Users still don’t like it¶

You have attempted 1 of 3 activities on this page