Difference between revisions of "CSC111 HW 1 Solutions 2011"

From dftwiki3
Jump to: navigation, search
(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 />

Latest revision as of 10:38, 30 January 2014

--D. Thiebaut 11:08, 26 September 2011 (EDT)


Solution programs for Homework #1


...