Posts by Cesar Bhering • 1 point
1 post
-
0
votes4
answers1240
viewsA: I want to take only the first digit after the point of a number that in python 3.7.4
It goes on in the simplest way I could imagine: numero = 3.76443 print(str(numero).split('.')[1][0]) First transforms the variable into a string str(number), then divide it into the point…