First off I was using 2.7 just learning things of some tutorials. I was making a basic test app to see a python app.. But alas I do not know how to get a python app to build so does 'build applet' do that for you? If so mine have been crashing I have 3 versions on my computer but all seem to make the program just crash right after it opens and yeah the app does need something done for it to close.
The code is..
Code: Select all
name=raw_input("Name: ")
print "Hey " + name"
raw_input=("Press<enter>")My second problem is now python 2.7 wont work and I have to use 3.1. Not sure if I'm paranoid or not but I seem to be having getting code lines that work in 2.7 to work in 3.1. I had 2.7 prior to 3.1 but after installing 3.1 I attempted to open 2.7 and got this error..

Any help there is wanted also.
My third problem is getting this dictionary code to work.
Code: Select all
name={'name1': 1, 'name2': 2, 'name3':3'}
for item in name:
print item
Now finally. loops....
I have tried this 2 ways both fail in 3.1..
First
Code: Select all
while 1:
name = raw_input("Name: ")
if name == 'quit': break
Second
Code: Select all
name = raw_input("Name: ")
Note the raw_input was working with version 2.7 but due to the fact I cannot get that to load because of the firewall error I cannot attempt this code in it. So if anyone can help me with this it would be great. I'm running 10.6.4 if that helps.
