The `print()` function takes the following arguments:
🐍 *objects - Stuff to print
🐍 sep=' ' - A string to separate object
🐍 end='\n' - A string to end on
🐍 file=sys.stdout - Where to write the data
🐍 flush=False - Whether or not to force flush the stream
Let's look at some examples of using Python's `print()` function:
You can use `print()` to write directly to a file by changing the `file` keyword argument to a file object.
This could be used kind of like logging, but Python's logging module is much better for that sort of thing.
Thanks for reading my mini-thread on Python's `print()` function.
See you next time! 🐍🔥
• • •
Missing some Tweet in this thread? You can try to
force a refresh
Blockchain is a super popular topic here on Twitter. While I am not a blockchain developer, I thought it would be fun to put together a short thread on blockchain and #Python
Check it out if you're interested in this topic!
🧵🐍👇
ActiveState is a well-respected #Python company with lots of great content and they have an intro article on blockchain with Python: