Fall 2011 CSCI 220 Homework 1 Clarification

There have been a few questions about the first homework. What I would like you to do is transform the chaos function so that it takes two function parameters. Here is an example using another program.

Original code: def main: first = input("First name: ") last = input("Last name: ") print(first,last) main

Following the same guidelines as the homework assignment, this would turn into: def main(first,last) print(first,last) main("Paul","Anderson")

One of you have raised the question about whether we are losing functionality by removing the input statements, and my answer would be yes and no. We are removing any user interaction with the program when we remove the input statements, but we are providing a simple mechanism for programmers to run the chaos function. This is an interesting distinction between other programmers that might use your code and a user who wants to run your program.

As far as my grading goes, I'm willing to accept either interpretation of my assignment: two function parameters or two input statements.