7.3 "How to think like a computer scientist - Python"
Hello everyone I am glad that I found this forum by searching trough Google, hope you can help me out in my attempt to fully understand Python.
I have followed the guide "How To Think Like a Computerscientist - Python" and i've come to this place where I can't think of any creative ways to do what the exercise says: As an exercise, modify the program to fix this error. (It's the Jack, Kack, Lack, Mack, Nack, Ouack, Pack, and Quack Duckling exercise thing I am working on) http://www.ibiblio.org/obp/thinkCSpy/chap07.htm#3 I know that I could simply just make several of the example code in alphabetical order: Code:
prefixes = "JKLMNOPQ" Code:
prefix1 = "JKLMN" Once again, I hope this forum will grow big and become the main spot for programming help.. |
How about
Code:
prefixes = "JKLMNOPQ" |
Juack
Kuack Luack Muack Nuack Ouack Puack Quack Is the output of your code. |
It worked when I did it. Post your code
|
First post on your lovely forum, and posting on a bit old post (from 2005). But i want to answer to the problem, because i had the same when this afternoon i tried to do this exercise from the book "How to Think Like a Computer Scientist"
So this is my answer Code:
prefixes = "JKLMNOPQ" |
All times are GMT -5. The time now is 10:09 AM. |