This is my code and I made it say "Please enter the right letter next time." when the incorrect base is inputted to the code, it does that it like:
Please enter the right letter next time.
None
How can I remove the "None" from appearing when ran?
if base == "A":
return "T"
elif base == "T":
return "A"
elif base == "C":
return "G"
elif base == "G":
return "C"
else:
return print("Please enter the right letter next time.")
#main program
base1 = match_base("X")
print(base1)