Difference between revisions of "CSC111 Lab3 Solutions 2014"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- =Solution Programs for Lab 3= <onlydft> <br /> <source lang="Python"> # Solutions programs for Lab 3 # # Test case 1 x = int( input( "Pleas...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 08:55, 12 February 2014 (EST)
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 08:55, 12 February 2014 (EST)
 
----
 
----
=Solution Programs for [[CSC111 Lab3 2014| Lab 3]]=
+
=Solution Programs for [[CSC111 Lab 3 2014| Lab 3]]=
 
<onlydft>
 
<onlydft>
 
<br />
 
<br />
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 193: Line 193:
 
<br />
 
<br />
 
</onlydft>
 
</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


...