0

I need help with this. To be able to print without "None"

https://code.sololearn.com/cLLUViEyuVXT/?ref=app

6th May 2021, 10:15 AM
Frimpong Godfred
Frimpong Godfred - avatar
4 Respuestas
+ 4
print(a.hit()) replace this with a.hit() same with 2nd one . hit() contains a print() method . you don't need to use print(hit()) as hit returns None .
6th May 2021, 10:17 AM
TOLUENE
TOLUENE - avatar
+ 1
replace print(a.hit()) as a.hit() and print(m.hit()) as m.hit()
6th May 2021, 10:28 AM
Krishnam Raju M
Krishnam Raju M - avatar
0
Kk, let me try that
6th May 2021, 10:18 AM
Frimpong Godfred
Frimpong Godfred - avatar
0
Thank you Md Sayed
6th May 2021, 10:20 AM
Frimpong Godfred
Frimpong Godfred - avatar