This is the code I am using:
def pomo_code_apply():
if success_name==1:
print(" "*79,'-$3.00')
if success_name==3:
print(" "*78, '-$10.00')
if success_name==2:
print(" "*79, '-$7.00')
else:
print()
and this is to call function
if success==1:
print(' Promotion Code',pomo_code_apply())
But in the output, I am getting this(for this eg let success_name==1)
-$3.00
Promotion Code None
however, I want to:
Promotion Code -$3.00
I don't understand why there is a new line for the -3 and why pomo_code_apply() returns both none and -3