Ad
  • Default User Avatar

    The only things related to Python that may result confusing here are:

    • The 'in' operator with strings. 'str1 in str2' basically means "Is str1 a substring of str2?"
    • The syntax f"{thing} {other thing}" is called string interpolation, look for it on Google.
  • Default User Avatar

    If you are new (and even if you are not new, and trying to understand other people's solutions) the absolute best thing you can do is to copy it to your local machine (or you can click the Fork option beneath the code itself to try it on Codewars) and experiment with the code yourself.

    You will learn 1000x more than just someone giving you the answer.

    For example, what happens when you delete various parts of the solution? Can you create a simpler copy of this with just rock/paper/scissors so you can understand the basic logic? Can you google the operations that you don't recognise? Etc.

  • Default User Avatar

    can someone explain it to meeeee pls????
    i am new in python lang so i am trying hardly to understand it.

  • Default User Avatar

    can somebody explain the solution pls ? :(