Closed pritchardcm closed 9 months ago
Removes a leading minus sign (for negative numbers) by using the method ".lstrip". Your code should look like this;
if top_of_range.lstrip('-').isdigit(): top_of_range = int(top_of_range)
Let me know how it goes...
This solved the issue! Thank you
when I type a number that is < 0,
it prints "please choose a number next time"
instead of
"please choose a number larger than zero"