jan26[1] - ? How do you know? 3. The variable uwords in...

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

View Full Document Right Arrow Icon
Compsci 6/101, Jan 26 2011 Name____________________ net-id _________ Name____________________ net-id _________ Name____________________ net-id _________ Name____________________ net-id _________ These questions are related to program Uppity.py 1. In the function main there is a variable defined that has the type string or str (Python style). What is the variable and what are the clues that it is a string? 2. What is type type of the parameter filename in the function uppify_file
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ? How do you know? 3. The variable uwords in uppify_file has the type list . What clues would help you determine this? 4. There is a string method used in the function uppify_list . What is the method and what are the clues that it is a string method? 5. The function print_list prints exactly one line of output. This is in part because one of the print statements in the function uses a comma -- explain what you think the role of the comma is....
View Full Document

This note was uploaded on 02/17/2012 for the course COMPSCI 6 taught by Professor Duvall during the Spring '08 term at Duke.

Ask a homework question - tutors are online