0

What is %d use

j,i=1,2 while(i<5): j=j*i i=i+1 print ("j is:%d"%j)

26th Mar 2017, 9:32 AM
Ansh Rawat
Ansh Rawat - avatar
3 Respuestas
+ 4
it's a placeholder for a variable inside a string.
26th Mar 2017, 9:38 AM
Mario L.
Mario L. - avatar
+ 1
And it converts the variable to an integer
26th Mar 2017, 11:40 AM
Noah Haasis
Noah Haasis - avatar
0
so what is it output?
26th Mar 2017, 12:00 PM
Ansh Rawat
Ansh Rawat - avatar