I have a line of code in python that is way too long. I'm trying to format it, but my company doesn't allow the use of "\" to break lines. I tried it as such,
(subject, message, chatRoomMsg, chatRecipientMsg) =
set_mail_and_chat(user, user_dict[user])
How can I format this line to make it work, but also keep the line under 80 characters.
Split it into two:
result = set_mail_and_chat(user, user_dict[user])
subject, message, chatRoomMsg, chatRecipientMsg = result
You can leave the opening parenthesis in the first line, and continue in the second one:
subject, message, chatRoomMsg, chatRecipientMsg = (
set_mail_and_chat(user, user_dict[user]))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With