Sorry for the title it's hard to explain. This code is pretty self-explanatory for what I'm trying to accomplish. Thanks for any help!
handtype = ""
hand_format = 'Handtype: %s' % (handtype)
if y:
handtype = "Straight"
hand = hand_format
hand
Desired Output = 'Handtype: Straight'