Reputation: 105
Probably simple but I want to send a post with a color hex in it that the target is expecting but I can't set that value in the color key because it comments out everything after it.
Upvotes: 2
Views: 5292
Reputation: 78546
You can't use #
as part of the name of a Python variable (see identifiers and keywords), but you can put #
followed by the color code in a string and send it as part of your payload for POST
ing:
var = '#42'
Upvotes: 3