Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python if boolean logic

def if_demo(s):
  if s == 'Hello' or s == 'Hi':
    s = s + ' nice to meet you'
  else:
    s = s + ' woo hoo!'
  return s
 
PREVIOUS NEXT
Tagged: #python #boolean #logic
ADD COMMENT
Topic
Name
5+9 =