Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

condition python

with_sun = True
in_week = False

if with_sun and not in_week:
   print("we go to the beach !")
elif with_sun and in_week:
   print("we go to work !")
else:
   print("we stay at home !")
Source by openclassrooms.com #
 
PREVIOUS NEXT
Tagged: #condition #python
ADD COMMENT
Topic
Name
1+5 =