0

(Resolved) I have a question about data types types(x) in Python

Each 'input' always starts as 'String'. Right after I convert the 'input' to 'string' because I need to do math with that 'input'. But I also need the code to show a 'print' saying that it can only read numbers in case the 'input' is text. Thanks.

31st Aug 2020, 12:25 AM
Rodion
Rodion - avatar
4 Respostas
+ 8
Research about isnumeric method of string class.
31st Aug 2020, 12:33 AM
Kevin ★
+ 1
Thanks dude, I'll search it. I am beginning to learn, I didn't know that method yet.
31st Aug 2020, 12:36 AM
Rodion
Rodion - avatar
0
It is very helpful to me, thank u very much dude. I will try to try both options.
31st Aug 2020, 12:59 AM
Rodion
Rodion - avatar