Conditional statement with print() test in python


I am using print(g == 'h' or g == 'l' or g == 'c') and it returns true/false I want to use this in a conditional statement


Hello, @ninedragons1pearlgma!
Unfortunately there's noo way you can use print inside an if statement, print doesn't return anything, only "prints" something to the user.


Well I'm not entirely sure what you want, but i'll give you the basic skeleton of what I think you might want:

if g == 'h':
   print 'true'
elif g == 'l':
    print 'false'
elif g == 'c':
    print 'false'