Difference between revisions of "CSC111 HW 1 Solutions 2011"
(→Solution programs for Homework #1) |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
=Solution programs for Homework #1= | =Solution programs for Homework #1= | ||
− | + | <onlydft> | |
<source lang="python"> | <source lang="python"> | ||
# hw1a.py | # hw1a.py | ||
Line 180: | Line 180: | ||
# Kate Aloisio | # Kate Aloisio | ||
# Edited by D. Thiebaut | # Edited by D. Thiebaut | ||
− | # | + | # Prints all the names on a single line with a box around them: |
− | + | # | |
+ | # +---------------------------------------------+ | ||
+ | # |Sleepy Sneezy Bashful Happy Grumpy Dopey Doc | | ||
+ | # +---------------------------------------------+ | ||
+ | # | ||
def main(): | def main(): | ||
Line 212: | Line 216: | ||
main() | main() | ||
</source> | </source> | ||
− | + | </onlydft> | |
<br /> | <br /> |