Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python if statement

usrinput = input('Type a number')
if usrinput = 5
  print('Your number is equal to 5')
  elif usrinput > 5
    print('Your number is bigger than 5')
  elif usrinput < 5
    print('Your number is less than 5')
  
Source by codefreelance.net #
 
PREVIOUS NEXT
Tagged: #python #statement
ADD COMMENT
Topic
Name
5+5 =