Jul-06-2017, 02:11 PM
Hello guys,
Firstly i really appreciate that you spend your time helping me instead of doing some else.
I am a beginner in python, and i coded a program like this :
I want to make a code that when word is typed wrong ask for it again and when is typed correctly move to the next one. But i am facing problems all the time.(i want to print a word (success) if the word is correct and print the word(fail) if the word is wrong).
Thanks for your time
Firstly i really appreciate that you spend your time helping me instead of doing some else.
I am a beginner in python, and i coded a program like this :
I want to make a code that when word is typed wrong ask for it again and when is typed correctly move to the next one. But i am facing problems all the time.(i want to print a word (success) if the word is correct and print the word(fail) if the word is wrong).
Thanks for your time
indignant= input("Δώσε μου την σημασία της λέξης indignant\n"); while (indignant!= "αγανακτησμένος"): indignant= input("Δώσε μου την σημασία της λέξης indignant\n"); if (indignant== "αγανακτησμένος"): print("Σωστό"); else: print("Λάθος"); tiger = input("Δώσε μου την σημασία της λέξης tiger\n"); while (tiger != "τίγρη"): if(tiger == "τίγρη"): print("Σωστό"); else: print("Λάθος"); wall = input("Δώσε μου την σημασία της λέξης wall\n"); while (wall != "τοίχος"): if(wall == "τοίχος"): print("Σωστό"); else: print("Λάθος"); leg = input("Δώσε μου την σημασία της λέξης leg\n"); while (leg != "πόδι"): if(leg == "πόδι"): print("Σωστό"); else: print("Λάθος"); break;