Skip to content

Instantly share code, notes, and snippets.

Created May 5, 2013 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5521323 to your computer and use it in GitHub Desktop.
Save anonymous/5521323 to your computer and use it in GitHub Desktop.
# F=(9/5) * C +32
def convert():
c = int(raw_input('Enter celcius to convert: '))
convertedC = (9/5.0) * c + 32
print convertedC
def again():
goAgain = raw_input('\nAre you finished? "Yes" or "No": ')
while goAgain == 'No':
return convert()
else:
print 'finished'
convert()
again()
@Foxboron
Copy link

Foxboron commented May 5, 2013

def again():
    goAgain = ""
    while goAgain == 'No':
        goAgain = raw_input('\nAre you finished? "Yes" or "No": ')
        convert()
    else:
        print 'finished'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment