fixed the issue. Will look into that further Have you considered that random_number is an integer, while raw_input() returns a string? This means guess is also a string. Try converting the variables to the same type! Since the types differ, the values are not equal, even though they may appear to be so when printed. In other words 3 != "3".
git: Output of git cherry does not change after git cherry-pick
like below fixes the issue It happens when cherry-picked commit has conflicts with your branch, so you need to resolve them by adjusting code changes. As a result, git cherry can't figure out, that new commit is identical to its originator, so it shows original commit in the list of changes to be applied. This post touches described situation. Note, that post isn't fully accurate as described in comments below it.
Creating ConsoleLogger directly astonishingly doesn't work
seems to work fine There are two possible "errors" of sorts: commits listed when you didn't want them listed (to borrow from medical terms, a false positive); and commits not listed when you did want them listed (a false negative).
GIT cherry-pick how to find out already cherry-picked or not