Python Forum
The problem of the cuts
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The problem of the cuts
#8
(Jan-19-2017, 08:53 PM)micseydel Wrote: Well, we all started out not knowing Python. You should check this out, and probably start over, testing small amounts of code at a time. As soon as you get stuck, post the minimal code it takes to reproduce it and ask as specific a question as possible.

And again, "can't make the code [...] run" is too vague. Whatever tools you're using should be giving you more specific feedback than that. In this case, it's clear, but for future reference make sure to be more specific. For example, when I try to run your code using IDLE, the colon after the 2 in the "if found" block is highlighted as being a problem. Python happens to be not super helpful in this particular case, since the code is so much not Python, but it's still always the right thing to do to say what Python is telling you.

[Image: piton.png]
Reply


Messages In This Thread
The problem of the cuts - by ics - Jan-19-2017, 07:35 PM
RE: The problem of the cuts - by micseydel - Jan-19-2017, 08:21 PM
RE: The problem of the cuts - by ics - Jan-19-2017, 08:37 PM
RE: The problem of the cuts - by micseydel - Jan-19-2017, 08:39 PM
RE: The problem of the cuts - by wavic - Jan-19-2017, 08:48 PM
RE: The problem of the cuts - by ics - Jan-19-2017, 08:48 PM
RE: The problem of the cuts - by micseydel - Jan-19-2017, 08:53 PM
RE: The problem of the cuts - by ics - Jan-19-2017, 09:01 PM
RE: The problem of the cuts - by ichabod801 - Jan-19-2017, 10:39 PM

Forum Jump:

User Panel Messages

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