thanks a lot, with the loops ill be able to help myself from retyping a load of code. i should have had a suspicion that such a function excists. I just tried using break to get out of the loop. It worked, so now if i have another while True function after this is there a way to go from the last one to the first?
x = raw_input("yes or no: ")
if x == "yes":
print "you did it!"
if x == "no":
print "try again!"
z = raw_input("do you want to do it again? (yes or no): ")
if z == "yes":
print "now do it again!"
#here i need to go back to the start
if z == "no"
what do I need to insert to get back to the first while loop?
I can't help you any more. I'm not a python developer and have never written a python program. I am a professional software engineer though and was able to help with your basic issues initially but you now need someone with more python knowledge than me.
Also its good practice once an item has been resolved to mark it solved and if you have any other questions then post them as new threads.
That is python 2 by the way as ZZucker mentioned, in python 3 it is input() instead of raw_input, and print statements require brackets as well anyway,
as Dave stated loop through to ask a user if he wants to try again
**how to solve invalid keystore error in android studio here is error report----------------------->
here is error report--------> error:Error:java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key palash from store "D:\MyApplication3.idea\workspace.xml": Invalid keystore format ...