May-06-2021, 03:06 PM
The
== True
is just redundant because if value.isdigit()
is perfectly clear. The name isdigit
is good because it tells you what the possible answers are (that there are only 2 possibilities of course).