- Code: Select all
a = "chad"
b = "dian"
print("Welcome to rpg")
print("please pick a char to play with")
c = input("")
if c == "1.":
ans = print("you picked chad to play with!")
elif c == "2.":
ans = print("you picked diane to play with!")
Ifi don't ask others wil so might aswel put it on google.
Anyhow I started to make a simple rpg game with no real idee wat I'm going to do yet or the story line just going at it, I heard its the best way to learn.
So I got input asking wich char you might want to play with and I get evrything as I want it but at the end with print(ans)
I get the proper print output but underneath I get a "none" on a new line.any idee why I get the none?