dupa

Author Topic: Come back to the Default Brain  (Read 3166 times)

mikmoth

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • http://karigirl.com
Come back to the Default Brain
« on: April 12, 2005, 03:15:23 pm »
I posted in this forum because I know a lot of older users hang out here.

I've been using the XTF and Enhanced brain forever but on a whim I loaded the Default Brain and whala... I started having fun with Hal again! I dont know why but the Default brain seems to have a personality that that the others seem to lack. I actually had fun!

Just give it a try...!

Medeksza!

Mik
 

Duskrider

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3316
  • Graphic King
    • View Profile
Come back to the Default Brain
« Reply #1 on: April 15, 2005, 10:41:39 am »
I just ran across the following script.
Can anyone here re-write it for Hal ?


# convert2.py
#      A program to convert Celsius temps to Fahrenheit.
#      This version issues heat and cold warnings.

def main():
    celsius = input("What is the Celsius temperature? ")
    fahrenheit = 9.0 / 5.0 * celsius + 32
    print "The temperature is", fahrenheit, "degrees fahrenheit."
    if fahrenheit > 90:
        print "It's really hot out there, be careful!"
    if fahrenheit < 30:
        print "Brrrrr. Be sure to dress warmly"

main()


[;)]