0

Why is this code repeating output, why cant it give a single output ?

https://code.sololearn.com/c2aH12wB1Ry7/?ref=app

20th Nov 2020, 12:45 PM
zeeshan
zeeshan - avatar
2 odpowiedzi
+ 10
Just change the indentation of print stmt
20th Nov 2020, 12:48 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
zeeshan , you should align print with the for loop, not with if clause.
20th Nov 2020, 12:50 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar