Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python bugging
#1
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



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;  
Reply


Messages In This Thread
Python bugging - by Basilis - Jul-06-2017, 02:11 PM
RE: Python bugging - by sparkz_alot - Jul-06-2017, 03:22 PM
RE: Python bugging - by Basilis - Jul-06-2017, 10:32 PM
RE: Python bugging - by ichabod801 - Jul-07-2017, 12:33 AM
RE: Python bugging - by Basilis - Jul-07-2017, 11:09 AM
RE: Python bugging - by sparkz_alot - Jul-07-2017, 01:12 PM
RE: Python bugging - by Basilis - Jul-07-2017, 05:15 PM
RE: Python bugging - by sparkz_alot - Jul-07-2017, 07:32 PM
RE: Python bugging - by Basilis - Jul-07-2017, 07:41 PM
RE: Python bugging - by nilamo - Jul-07-2017, 08:51 PM
RE: Python bugging - by Basilis - Jul-08-2017, 09:58 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020