Python Code For Different Patterns To Play