I'm trying to print a line with multiple arguments in python but somehow one specific argument prints before all the others:
star = "*"
def how_many_stars(who):
for i in range(int(len(who))):
print(star, end="")
print(" |************** PSEUDO :", player_1.get_name(), how_many_stars(player_1.get_name()),"|")
The argument that prints before is the how_many_stars()
The program returns this (I'm using PyCharm community):
***** |************** PSEUDO : Steve None |
(the player_1.get_name
is Steve)
So we clearly see the 5 stars we wanted but it's not at right position at all !
I already tried to change the order of the arguments but it changes nothing.
Thanks, have a nice day.