Old #Python: print("count:", count) New Python: print(f"{count=}") The = inside an f-string (3.8) prints both the name and the value: count=42. Built for debugging, and it saves typing.
2 likes 0 replies
?
Old #Python: print("count:", count) New Python: print(f"{count=}") The = inside an f-string (3.8) prints both the name and the value: count=42. Built for debugging, and it saves typing.
2 likes 0 replies