My issue
whats wrong in this code
My code
def steps_to_divisible_by_3(x):
return (3 - x % 3) % 3
# Input list
inputs = [4, 0, 100, 32, 18]
# Process each input and print the result one by one
for x in inputs:
print(steps_to_divisible_by_3(x))
Learning course: Design and Analysis of Algorithms
Problem Link: Problem(High Accuracy)- Solve the complete problem in Design and Analysis of Algorithms