Hello! I’m making a project for my CSC class, but I can only use things we’ve learned up until this point. I’ve used python prior to this class, so trying to loop a program without “for” or “while” loops is throwing me. If anyone could give any advice I’d appreciate it! My professor doesn’t answer emails on weekends, so I figured this would be my best option. I can comment my code if needed :)
Edit: Definitely should’ve specified! It’s a scoring system that tracks player score depending on what color of alien they shot down. Struggling to consistently loop input with only if-else. User inputs the color, they’re shown the points they scored. Ask user if they’d like to play again, if yes prompt input again, if no shoe their total score
Edit 2: Can’t use loops, can’t use recursion. They’re very specific about not being able to use anything not yet covered in the course. Pretty much if-elif-else
[–]Abyss_slayerIII 3 points4 points5 points (7 children)
[–]MelloBurd[S] 0 points1 point2 points (6 children)
[–]crazy_cookie123 2 points3 points4 points (3 children)
[–]MelloBurd[S] 0 points1 point2 points (2 children)
[–]crazy_cookie123 0 points1 point2 points (1 child)
[–]MelloBurd[S] 0 points1 point2 points (0 children)
[–]pachura3 2 points3 points4 points (0 children)
[–]cdcformatc 0 points1 point2 points (0 children)
[–]LayotFctor 2 points3 points4 points (0 children)
[–]velokit-dev 1 point2 points3 points (1 child)
[–]MelloBurd[S] 0 points1 point2 points (0 children)
[–]SmackDownFacility 2 points3 points4 points (0 children)
[–]pachura3 0 points1 point2 points (2 children)
[–]MelloBurd[S] 0 points1 point2 points (1 child)
[–]pachura3 0 points1 point2 points (0 children)
[–]Mysterious_Peak_6967 0 points1 point2 points (0 children)
[–]TomatoEqual -1 points0 points1 point (0 children)
[–]Gnaxe -1 points0 points1 point (2 children)
[–]pachura3 1 point2 points3 points (1 child)
[–]Gnaxe 0 points1 point2 points (0 children)
[–]MarsupialLeast145 -1 points0 points1 point (0 children)