lab practice exam

3 write a function that takes as input a binary string

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: d return a number that represents the same speed in feet per second. There are 5280 feet in one mile, and 3600 seconds in an hour. For example, problem1(360) should return 528.0 2. Write a function that takes, as input, a positive integer n, and returns a list of the first n powers of 2, starting with 2. Call this function problem2(n). For example, problem2(4) should return...
View Full Document

Ask a homework question - tutors are online