Difference between revisions of "CSC111 Homework 7 Solution"

From dftwiki3
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
--[[User:Thiebaut|D. Thiebaut]] 14:09, 30 March 2010 (UTC)
 
--[[User:Thiebaut|D. Thiebaut]] 14:09, 30 March 2010 (UTC)
 
----
 
----
 
+
<onlydft>
 
<source lang="python">
 
<source lang="python">
  
Line 186: Line 186:
 
     user_greet = formatInput()
 
     user_greet = formatInput()
 
     isGreeting = checkSentence(user_greet, greetings)
 
     isGreeting = checkSentence(user_greet, greetings)
     if isGreeting : returnCan(ProgGreet)
+
     if isGreeting :  
     else : returnCan(ProgScold)
+
          returnCan(ProgGreet)
 +
     else :  
 +
          returnCan(ProgScold)
  
  
Line 277: Line 279:
  
 
</source>
 
</source>
 +
</onlydft>
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
[[Category:CSC111]][[Category:Homework]][[Category:Python]]

Latest revision as of 08:46, 7 September 2011

--D. Thiebaut 14:09, 30 March 2010 (UTC)



...