New course! Every coder should learn Generative AI!
Try a free lesson0
Why is this code repeating output, why cant it give a single output ?
2 Answers
+ 10
Just change the indentation of print stmt
+ 1
zeeshan , you should align print with the for loop, not with if clause.