Hi, this is my first time come to this website to ask about python question.
I'm totally don't know how to do my last assignment.It is distance education
class, and my taxt book DOES NOT show exactly information for me to do this
assignment.
There is my assignment,
http://cmpt165.cs.sfu.ca/~ggbaker/examples/chequebook.html

I feel so helpless when I doing this assignment

Could you teach how to start and end this assignmet?

I try to write something about password but I still don't have any idea.

Here is some codes which I try to write
 import pickle
filename = "cheques.data"

# print HTTP/HTML header stuff
print """Content-type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html><head>
<title>Chequebook</title>
</head>
<body>
<h1>Chequebook</h1>"""

# print HTML body using form data
password = int(form["password"].value)
x = int(form["steps"].value)
if x="165":
         show all data
else:
    print "wrong password"

import chequelib
data = chequelib.read()
data[0][0] = 0,data[0][1] = 250.0, data[0][2] = "blance"
data[1][0] = 1,data[1][1] = -12.34,data[1][2] = "chips & gum"
data[2][0] = 2,data[2][1] =-345.12,data[2][2] = "dentist" 

These data I follow 
http://www.cs.sfu.ca/CC/165/ggbaker/assign-1/files/cheques.data

Please, help me to do this assignment.

Thank you 

Lucia LEE
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to