How to change the type of input function in VS code
in pycharm when using input function i am getting its type as string but in visual studio code I am getting the type as integer
Answers
Answered by
2
Answer:
Approach Two: use string class isdigit() method to check user input is number or string. Note: isdigit() function will work only for positive integer numbers. i.e., if you pass any float number, it will say it is a string. Let's execute the above program again to validate it.
Answered by
2
Answer:
Approach Two: use string class isdigit() method to check user input is number or string. Note: isdigit() function will work only for positive integer numbers. i.e., if you pass any float number, it will say it is a string. Let's execute the above program again to validate it.
Hope this help uhhhh ❤
Similar questions