Quiz - PowerPoint PPT Presentation

1 / 1
About This Presentation
Title:

Quiz

Description:

Title: PowerPoint Presentation Author: Zachary Dodds Last modified by: Fujitsu Created Date: 11/7/2006 5:52:27 PM Document presentation format: On-screen Show (4:3) – PowerPoint PPT presentation

Number of Views:15
Avg rating:3.0/5.0
Slides: 2
Provided by: Zach90
Category:
Tags: quiz

less

Transcript and Presenter's Notes

Title: Quiz


1
"Quiz"
class Date def isBefore(self, d2) """
if self is before d2, this should
return True else False """ if self.year lt
d2.year return True if self.month lt
d2.month return True if self.day lt d2.day
return True return False def
tomorrow(self) """ moves the date that
calls it ahead 1 day """ DIM
0,31,28,31,30,31,30,31,31,30,31,30,31
This method is WRONG! Find why and suggest how
you could fix it!
Write this tomorrow method.
It does not return anything. It just CHANGES the
date object that calls it.
Write a Comment
User Comments (0)
About PowerShow.com