U can add several elifs after the first of. They are almost exactly the same thing as if statements, but they only get checked if the statements above them were not true/do not run,
ans = input("gimmeh pswd")
if ans == "bob":
print("yeyyy!")
elif ans == "tom":
print("NU go awayyyy")
elif ans == "pswd":
print("I shall not pass!!")
else
print("ah I’m just kidding come on in.")
Is is possible for u to invite someone to the repl (if you want to) or do you want me to explain here? @GangstaPichu btw it’s just like PSEUDOCODE... the CASE...OF...OTHERWISE...ENDCASE statement
@dillonjoshua68 Yeah, I can do that. Also, I have no idea what that is. I just started coding yesterday. I know some just very basic stuff is all. This project is just something to help me ease into coding since it can be very hard for my mind to grasp.
U can add several
elif
s after the first of. They are almost exactly the same thing as if statements, but they only get checked if the statements above them were not true/do not run,@Highwayman How would you go about putting it in?
@GangstaPichu
@Highwayman ans = input("Assassin ").lower()
if ans == "assassin":
elif ans == print("Thief "):
I don't think I'm doing this right. I get either syntax error or expected indent?
Is is possible for u to invite someone to the repl (if you want to) or do you want me to explain here? @GangstaPichu btw it’s just like PSEUDOCODE... the CASE...OF...OTHERWISE...ENDCASE statement
@dillonjoshua68 Yeah, I can do that. Also, I have no idea what that is. I just started coding yesterday. I know some just very basic stuff is all. This project is just something to help me ease into coding since it can be very hard for my mind to grasp.
@dillonjoshua68 https://repl.it/join/ulmuszpw-gangstapichu
like this use this format
an use multiple elif statements to give multiple options, also use the print statement to display the options available
@GangstaPichu
i forked it @GangstaPichu
@dillonjoshua68 I didn't know you can use a thing like or. Also, I see you did f' how does that work?
@GangstaPichu I should've looked better at it. I just saw it. Lol
Thanks a lot for the help though on it. Been puzzled by this. :)
no probz
@GangstaPichu
:) :)
@GangstaPichu
@dillonjoshua68 thanks for sharing drift hunters unblocked
@GangstaPichu good information drift hunters unblocked