Using the existing code, tweets are hard-wrapped at 32 characters - which causes words to get cut off half-way through. This modification imports the textwrap module, and uses its wrap function to neatly wrap tweet text at 32 characters - making everything a lot more readable.
Using the existing code, tweets are hard-wrapped at 32 characters - which causes words to get cut off half-way through. This modification imports the textwrap module, and uses its wrap function to neatly wrap tweet text at 32 characters - making everything a lot more readable.