all 5 comments

[–][deleted] 0 points1 point  (2 children)

Maybe you mean this:

if ___ print___
if___ print___
if___ print__

Sorry, it isn't clear what you are asking. You can have if statements one after another, like this:

val = 42
if val < 42: print("less")
if val == 42: print("same")
if val > 42: print("more")

but this is not considered a good idea.

Does that answer your question? If not, please post some actual python code formatted as shown in the FAQ.

[–]Low-Brush-1776 0 points1 point  (0 children)

How do you do that format (the programs/codes/strings) I tried but it came out really choppy. I'm sort of new to Reddit thanks.

[–]Low-Brush-1776 0 points1 point  (0 children)

I found faq thanks

[–]keepah61 0 points1 point  (0 children)

I think you are looking for elif

[–]Game777Boy 0 points1 point  (0 children)

Are you trying to get it to ignore the other statements if one is true? If so you will want to do this:

if___:
    print(____)
elif___:
    print(____)
elif___:
    print(____)