What is the use of int () in input statement?

int() changes a string to an integer . For example, int(’12’) will give us an integer 12. In the above example, we are taking the input from the user as a string with the input() function and then we are using int() to change it to an integer.

Sizin İçin Seçtik  Is string a data type in Dart?

Leave a Reply

Your email address will not be published. Required fields are marked *