Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I absolutely agree that f-strings are excellent for formatting, but I don't quite understand why you would use formatting in a regular print statement, when you could just stick to the commas and let the concatenation happen naturally in the output buffer?

print("There are", len(lights), "lights!")



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: