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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!