+ 1
How do I remove the "None" type that appears after my every print statement?
~snip~ while True: weapon = input(": ") If weapon == "exit": break elif weapon == "gun": print(m.hit()) elif weapon == "laser": print(a.hit()) ~snip~ Not, after every print statement, the None type always prints as well. I don't understand why it's being printed...needless how to remove it...help, please!!!
1 Answer
+ 3
See what returned by m.hit() and a.hit()
Just call m.hit(), a.hit() without printing...