Difference between revisions of "CSC111 Homework 7 Solution"
(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]] |