Home > other >  Python beginners, see a problem
Python beginners, see a problem

Time:12-02

Why the final output is not 100?

CodePudding user response:

In the second for loop, each if there should be a continue

CodePudding user response:

Added or not

CodePudding user response:

Settled, become the if elif else

CodePudding user response:

Wrong and should be in this form, each loop, just call a choujiang ()

 cj=choujiang () 
If cj=='first prize:
Cj1=cj1 + 1
If cj=='second prize:
Cj2=cj2 + 1
  • Related