Print Pattern In Python Using Function