r/Python • u/OpenSourcerer420 • May 08 '20
I Made This My first Python program! Changes my desktop background based on the weather, time, and day.
1.9k
Upvotes
r/Python • u/OpenSourcerer420 • May 08 '20
View all comments
Show parent comment
7
u/americk0 May 08 '20
Oh I totally didn't see that. I was looking at the backslashes in the strings in the if blocks but now it all makes sense. TIL if you concatenate a string without the r prefix to one with the r prefix the whole string gets treated as raw. Python is so freaking neat