Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Yahoo! Answers Question Response
- #Question URL: https://answers.yahoo.com/question/index?qid=20140912201048AAL2DEM
- #Code written by: Jamie
- #http://TechnicalCafe.com
- #assume variable "numberOfSides" has already been declared and initialized
- #Use a conditional statement to assign the value of "true" to the variable
- #"isQuadrilateral" if "numberOfSides" is equal to 4 and "false" if "numberOfSides"
- if numberOfSides == 4:
- isQuadrilateral = true;
- else:
- isQuadrilateral = false;
Add Comment
Please, Sign In to add comment