Last answered:

04 Nov 2022

Posted on:

25 May 2021

0

guess = int(guess). Not clear about the usage of this statement

If we have already used

if guess.isdigit()

then why are we using,

guess = int(guess)

Digit is already an integer then why are we converting it

2 answers ( 0 marked as helpful)
Posted on:

04 Nov 2021

1

Python String isdigit() method is a built-in method used for string handling. The isdigit() method returns “True” if all characters in the string are digits, Otherwise, It returns “False”. 

Posted on:

04 Nov 2022

0

why we use guess = int (guess) ?  still not understand this .

Submit an answer