0
please help how do i get python to read every other digit
if i have 2938736 how do i get it to read 9,8,3
2 Respostas
+ 1
you can change the type of your number to str. and you can seperate every digit.
num = 12345
num = str(num)
for i in num:
print(i, "," , end="")
But i am not sure this is what you want. Hope it will be helpful.
0
how would i be able to times the digits pulled by 2