+ 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!!!

8th Mar 2022, 5:43 PM
Chris
1 Answer
+ 3
See what returned by m.hit() and a.hit() Just call m.hit(), a.hit() without printing...
8th Mar 2022, 5:47 PM
Jayakrishna šŸ‡®šŸ‡³