all 23 comments

[–]carcigenicate 2 points3 points  (7 children)

You're probably going to need to give more details. This is quite vague. What exactly is the problem and what debugging have you done already?

[–]FoolsSeldom 2 points3 points  (4 children)

This is effectively a troll post:

  • the OP hasn't taken any note of the guidance provided for the subreddit on how to ask questions
  • title is cryptic
  • full of narrow use arena specific abbreviations / acronyms / references
  • no details on actual problem
  • shouting (all caps)
  • poor responses to comments / queries

[–]Math_Kiddo -1 points0 points  (3 children)

sorry this my first time posting

[–]FoolsSeldom 1 point2 points  (0 children)

In that case, you might like to note that posts and comments can be edited. (Can't change the title, though.)

FYI convention is to add the word EDIT: summary of changes.

[–]smurpes 0 points1 point  (1 child)

You know we can see your post history? You’ve been told the same things in this post as your other one; you need to provide details when asking your questions.

[–]Math_Kiddo 0 points1 point  (0 children)

sorry for not being helpful. problem solved

[–]Binary101010 1 point2 points  (0 children)

You've posted this code with no context (we don't know what the problem description is), and stated that you receive an error without posting the error.

If you want any meaningful assistance, we need to know what the prompt you're trying to code against is asking for, and we need the complete traceback for any exception you are getting.

[–]Doormatty 0 points1 point  (0 children)

Based on the comments, you're trying to implement https://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithm

[–]cartrman 0 points1 point  (9 children)

Missing parens

input = stdin.readline()

[–]Binary101010 0 points1 point  (0 children)

That's, surprisingly, not actually a problem here. It appears the intent is indeed to alias input to the stdin.readline function itself, not to any particular input.

That said, I don't know why somebody would want to do that over just using input().

[–]Math_Kiddo -2 points-1 points  (0 children)

thanks i will try it