I am completely new to python so please excuse me. I try to learn python on a website called Codecademy. It all works fine, however I wanted to see what would happen if I insert a script from the website into python on my PC. I have currently installed the second version of python (2.7.13).
The script is the following:
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word [0]
new_word = word + first + pyg
# All the different variables are now in one
new_word = new_word[1:len(new_word)]
# The first two letters are removed
print new_word
else:
print 'empty'
# If there is no input or any input containing non-letter characters
When I open this script via python, I am able to enter the first question, but as soon as I hit enter, the program closes and I can not get to my second question. I tried loading it via cmd
directly, but it didn´t work either.