CMPT 120 LECTURE MIDTERM 2 SOLUTIONS

Make a python list of 3 elements that contains your

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: DivideByZero _ 3. Make a Python list of 3 elements that contains your height as a floating value, your age as an integer value and your name as a string: ___[ 60.0, 49, "Harold Hophozophen"]_ 4. What is the result of the following expression: range(14, 20)= _[14, 15, 16, 17, 18, 19] _ 5. Suppose you had a list of your favourite colours called colours represented as strings. Then what is the value of the following expression? (2 in colours) ___ False ___ 6. What is the value of this expression? (["red"...
View Full Document

This document was uploaded on 03/18/2014 for the course CMPT 120 at Simon Fraser.

Ask a homework question - tutors are online