Forum Archive

How do I RUN a script

tedcantrall

I usually use the IDLE ide on a PC. Pythonista was highly recommended for use on an iPad (I’m on vacation now), but I can’t get an 11 line program to run. It starts with a ‘def’ and ends with a ‘return’ and works fine at home. I can run scripts from the Example folder, but absolutely nothing happens when I run my script. What am I missing? (I have a print statement as the first command.)

ccc

You need to call your function.

def hello_function(name):
    print(name)
    return name


hello_function("You")  # Add this line
AlanLuiz

Hello. I had same problem last week)