Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python bugging
#6
(Jul-07-2017, 11:09 AM)Basilis Wrote: when i put the break tag's i face a error

Where in your code did you put the 'break' ? (post the relevant code between the code tags), What is the full error that you receive? (post the complete error code between the error tags)
Did you clean up your code as I suggested, to make it easier for you and us to read and follow?

Here is an example of your first loop, cleaned up:

indignant = input("Δώσε μου την σημασία της λέξης indignant\n")
while indignant != "αγανακτησμένος":
   indignant = input("Δώσε μου την σημασία της λέξης indignant\n")
   if indignant == "αγανακτησμένος":
       print("Σωστό")
       break
   else:
       print("Λάθος")
       continue
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
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