I am currently working on a "Learn Python" course, and I came across this snippet:
f.write("This is line %d\r\n" % (i+1))
The thing is, I'm not entirely sure what "%d\r\n" and "%" are doing in the string?
Could someone tell me what they're doing, or point me in the right direction to some resources?
Thank you.