David Beazley on Nostr: Helpful Python tip of the day. If you write a function that prints, you should ...
Helpful Python tip of the day. If you write a function that prints, you should probably tell people that it does:
def greeting() -> print:
print("Hello World")
Published at
2023-05-22 11:16:57Event JSON
{
"id": "ac6c7690f7d7b305fc2c6904b43e632b1e8db7cd00acc48d3d95355b1bbfde13",
"pubkey": "54be8b44da6d3e62d80831e30a85ef15645e1fb05fcadcf16709f5bb2a350112",
"created_at": 1684754217,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/dabeaz/statuses/110412052375862889"
]
],
"content": "Helpful Python tip of the day. If you write a function that prints, you should probably tell people that it does:\n\ndef greeting() -\u003e print:\n print(\"Hello World\")",
"sig": "721d540350325a2a62b149a4ab2dac322084029117b6f53e4155a6bbd8bd5fd4549d38a82ed671be663f88582192266fcafad4532b8c71b0adc8e298f26f1d5c"
}