DSC 430: Python Programming
Assignment 0601: Palindrome Dates
A palindrome date is a date that is the same when read forwards and backwards, e.g., ‘02/02/2020’. Write
a program that identifies and saves to a file all the palindrome dates in the 21st century using the
DD/MM/YYYY format. Do not use recursion. Do not use any built-in calendar-ish packages. To keep
things simple, treat leap years as regular years.
Record a three-minute video in which you run the code. Then, present your code. Specifically, answer
the following questions:
• How did you iterate through the different dates?
• How did you test if a date was a palindrome date?
• Where you able to ignore entire months or even years without evaluating every date?
Submission: Submit a single .py file containing all the code to the D2L. Do not zip or archive the file. Your
code must include comments at the top including your name, date, video link, and the honor statement,
“I have not given or received any unauthorized assistance on this assignment.” Each function must include
a docstring and be commented appropriately.
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。