Currently trying to set up this function and its giving me errors when defining minus as a variable. I know its the way I set it up, but I cant find anything on the correct setup. Can someone point me in the right direction?
def horizontal(k):
plus = "+"
minus = "-"*((k-3)/2)
print(plus,minus,plus,minus,plus)
horizontal(5)
should be giving an output of +-+-+