Home > other >  Python secondary solution
Python secondary solution

Time:09-28

I want to ask, what is the meaning of this int?
Why not directly input (" please enter a number ")
But: int (input (" please enter a number "))

CodePudding user response:

Int means integer, input and output is a string, even if you enter 1, 2, 3, but these are strings, but int the becomes a integer, can carry out calculations, not int x is not involved in the operation

CodePudding user response:

String to integer function, the input is a string ()
  • Related