• ForeverHawk

    Sorry if I sound like an idiot, my English isn't very good and I am new to the Python. I just started using Python. I've been trying out some new things and wanted some help. This script isn't working, is there anyone adjustments need for it? What does the "def" mean and why do I need to end in the "space()" and I need to define space(). What does define do in the code. Thank you my friends. :)

     def space():
        print"You have arrived in Space!"
        print"Do you want to go to Mars or Jupiter?"
        answer == "raw_input("Type Mars/Jupiter then hit 'Enter')
        if answer == "Mars"
            print"Welcome to Mars"
        elif answer == "Jupiter"
            print"Welcome to Jupiter"
        else:
            print"You didn't pick either. Try again."
            space()
            
        space()
    

    posted in Pythonista read more
  • ForeverHawk

    Thanks for replies. I am very gratefully of you guys.
    Bye.

    posted in Pythonista read more
  • ForeverHawk

    Also, I think I used tab correctly. It just did not show right up.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!