Looks pretty standars stuff found in many codes in our Code Snippet section. Cut is usually not done but it would be simple to do:
Determine cut_point
deck = deck[cut_point:] + deck[:cut_point]
pyTony
pyMod
6,305 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26
You are printing menu by the main function after checking the input, which I find strange, especially since it is endless loop printing the menu. You have also defined this function inside the class with missing self parameter, but you call it like free function. Why are not using else instead of separate if at end? Also the alternatives are exclusive and should be elif in single if. deck is not defined in main also and you have no instance of deck_of_cards in your program. By convention the class name should also be in CapitalizedWordsFormat.
Also you have uM tested for other values inside if which ensures uM is 1, so the other if conditions can never be True.
pyTony
pyMod
6,305 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26