I'm running some tutorials and now I want to make an own test-script. I have been written a little bit but now I have got a problem...
Look at the code under here:
- Code: Select all
add_one = "k"
first_word = raw_input('Enter a word and hit "ENTER")
#In this example I write down "TEST" and hit "ENTER" and now the word "TEST" is stored in "first_word".
second_word = first_word + add_one
#After this, "Second_word" does now stores the word: "TESTk"
#On the display or the cmd/terminal or whatever you use it will be this word as I said up there: "TESTk"
But now I want to make an other code. In this code I want to do almost the same thing but the complete opposite... I want to start the program and when it asks me to "Enter a word and hit "ENTER"" I will write down the word "TESTk" and after I hit ENTER I want to see what word it was from the beginning.
Sorry for bad description...
Hope anyone can give me a code or help me do this!