ex_wicker969: (Default)
wicker ([personal profile] ex_wicker969) wrote in [community profile] intro_to_cs 2009-11-12 05:06 am (UTC)

Hey, I'm all for being a bit of a smartass. I realized I misread the question so I'm going back through all the Python Programming Wikibook examples, which led to this:

question = "Which prime do you wish to find?"
print (question)
n = raw_input()
print ("You wish to find the " + n + "th prime? Fat chance of THAT!"

Post a comment in response:

This community only allows commenting by members. You may comment here if you're a member of intro_to_cs.
(will be screened if not on Access List)
(will be screened if not on Access List)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting