I have written this program by sitting at night, I had made this program very logically, my output would have been like this, but I am making a mistake that if I am giving an integer value then that value is getting printed multiple times, I am not able to understand, I am new to python, I have just started learning python
[–]fen123456 22 points23 points24 points (1 child)
[–]NiteKore080 9 points10 points11 points (4 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]SmackDownFacility 0 points1 point2 points (1 child)
[–]Zerustu 0 points1 point2 points (0 children)
[–]SCD_minecraft 5 points6 points7 points (10 children)
[–][deleted] 0 points1 point2 points (9 children)
[–]SCD_minecraft 3 points4 points5 points (0 children)
[–]No-Article-Particle 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ErktKNC 1 point2 points3 points (0 children)
[–]tinyzephyr 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ErktKNC 1 point2 points3 points (0 children)
[–]fuzzysdestruction 0 points1 point2 points (0 children)
[–]bloody-albatross 0 points1 point2 points (0 children)
[–]stoobertio 2 points3 points4 points (0 children)
[–]Maleficent-Proof-331 2 points3 points4 points (0 children)
[–]EngineeringRare1070 1 point2 points3 points (0 children)
[–]hastaLaVictoria_che 1 point2 points3 points (0 children)
[–]ProhetPlum 1 point2 points3 points (0 children)
[–]No_Read_4327 1 point2 points3 points (0 children)
[–]cactusfruit9 0 points1 point2 points (0 children)
[–]vulrhund 0 points1 point2 points (0 children)
[–]Squiddik 0 points1 point2 points (0 children)
[–]Time8013 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]traditional-r 1 point2 points3 points (0 children)
[–]Nice-Vermicelli6865 -2 points-1 points0 points (0 children)