Jack is writing a program to add up some numbers. His first attempt at the program is shown.
a = input("Enter a number")
b = input("Enter a number")
c = input("Enter a number")
d = input("Enter a number")
e = input("Enter a number")
f = (a + b + c + d + e)
print(f)
Give two ways that the maintainability of this program could be improved.
1 | |
---|---|
2 |
Did this page help you?