Home > other >  If the branch python beginners question
If the branch python beginners question

Time:09-29

Why is this case?
To enter 1 x, but after judgment is not to the assignment y

CodePudding user response:

Because the input is the default string type, changing the first line to x=int (input ())

CodePudding user response:

reference 1/f, mathematics slasher response:
because the input string type by default, the first line to x=int (input ()) it is ok to

Problem solved, thank answer orz
  • Related