Difference between revisions of "CSC111 Lab3 Solutions 2014"

From dftwiki3
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
----
 
----
 
=Solution Programs for [[CSC111 Lab 3 2014| Lab 3]]=
 
=Solution Programs for [[CSC111 Lab 3 2014| Lab 3]]=
+
<onlydft>
 
<br />
 
<br />
 
<source lang="Python">
 
<source lang="Python">
Line 182: Line 182:
  
 
if  computerScore > humanScore:
 
if  computerScore > humanScore:
     print( "You lose the round of 3 games! :-(" )
+
     print( "You lose! I am sorry, but you are no match for me!" )
 
elif computerScore < humanScore:
 
elif computerScore < humanScore:
 
     print( "You win the 3 rounds!  Congrats!" )
 
     print( "You win the 3 rounds!  Congrats!" )
Line 192: Line 192:
 
</source>
 
</source>
 
<br />
 
<br />
+
</onlydft>
 +
 
 
<br />
 
<br />
 
<br />
 
<br />
 
[[Category:CSC111]][[Category:Python]][[Category:Labs]]
 
[[Category:CSC111]][[Category:Python]][[Category:Labs]]

Latest revision as of 21:33, 9 January 2015

--D. Thiebaut (talk) 08:55, 12 February 2014 (EST)


Solution Programs for Lab 3


...