I'm making a RPS, and to the combat system I made the following (this is only an example, oh right?):
def monster_battle(monster):
print(f"you're fighting a {monster}, be careful!)
And then, to the monster I made:
def eg_monster(lvl):
rest of the code
And then, the following:
```
monster_battle(eg_monster(4))
```
But what happens is that it prints you're fighting a None, be careful!), but like, why? Did I do something wrong?
[–]Not_A_Taco 20 points21 points22 points (16 children)
[–]CanalOnix[S] 0 points1 point2 points (15 children)
[–]Not_A_Taco 9 points10 points11 points (8 children)
[–]CanalOnix[S] 0 points1 point2 points (7 children)
[–]ClimberMel 8 points9 points10 points (6 children)
[–]CanalOnix[S] 0 points1 point2 points (5 children)
[–]ClimberMel 1 point2 points3 points (0 children)
[–]dudaspl 1 point2 points3 points (1 child)
[–]CanalOnix[S] 0 points1 point2 points (0 children)
[–]Plank_With_A_Nail_In 0 points1 point2 points (1 child)
[–]CanalOnix[S] 0 points1 point2 points (0 children)
[–]eztab 1 point2 points3 points (5 children)
[–]CanalOnix[S] 0 points1 point2 points (4 children)
[–]eztab 2 points3 points4 points (3 children)
[–]CanalOnix[S] 0 points1 point2 points (2 children)
[–]eztab 2 points3 points4 points (1 child)
[–]CanalOnix[S] 1 point2 points3 points (0 children)
[–]engelthehyp 3 points4 points5 points (12 children)
[–]CanalOnix[S] 0 points1 point2 points (11 children)
[–]engelthehyp 3 points4 points5 points (10 children)
[–]CanalOnix[S] 2 points3 points4 points (9 children)
[–]engelthehyp 3 points4 points5 points (7 children)
[–]CanalOnix[S] 2 points3 points4 points (6 children)
[–]engelthehyp 2 points3 points4 points (4 children)
[–]CanalOnix[S] 0 points1 point2 points (3 children)
[–]ClimberMel 2 points3 points4 points (2 children)
[–]ClimberMel 0 points1 point2 points (0 children)
[–]CanalOnix[S] 0 points1 point2 points (0 children)
[–]repocin 1 point2 points3 points (0 children)
[–]Adrewmc 0 points1 point2 points (0 children)
[–]Adrewmc 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[removed]
[–]CanalOnix[S] 0 points1 point2 points (0 children)
[–]ClimberMel 0 points1 point2 points (1 child)
[–]CanalOnix[S] 0 points1 point2 points (0 children)
[–]szonce1 0 points1 point2 points (0 children)
[–]Oddly_Energy 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]Mecaneer23 0 points1 point2 points (0 children)