hi
i've recently been learning about python on cssciencecircles.com. After a while i decided to download it so i can save some of my programmes. When i make a programme in the IDLE shell and save it, even the most simple instructions, eg. print('hello world') , when i try to open it in the launcher it says: -bash: :command not found.
Not really sure what i'm doing wrong. I have a mac osx 10.6.8 and am running python 3.2.3. Any ideas?
Thanks
Dan

Recommended Answers

All 3 Replies

Sorry i'm quite a newbie what is a she bang line?

ok this is everything it says:
Last login: Mon Sep 24 17:40:52 on ttys000
cd '/Users/JamieBoxall/Documents/' && '' '/Users/JamieBoxall/Documents/hello.py' && echo Exit status: $? && exit 1
Jamie-Boxalls-iMac:~ JamieBoxall$ cd '/Users/JamieBoxall/Documents/' && '' '/Users/JamieBoxall/Documents/hello.py' && echo Exit status: $? && exit 1
-bash: : command not found
Jamie-Boxalls-iMac:Documents JamieBoxall$

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.