Question: There's a bug in the following code that can be fixed with three letters, so that the output is as follows: 54321Done! What are the
There's a bug in the following code that can be fixed with three letters, so that the output is as follows: 54321Done!
What are the three letters that must be added or taken from the code?
x = 5
my_string = ""
while ( x > 0):
my_string = my_string + (x)
x = x-1
print(my_string + "Done!")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
