You can access the CS program here -->Odds into Pairs to Watch for CS Program
Code for reference:
Code: Select all
# Odds into Pairs to watch for on lotterypost.com by Goseahawks
# https://www.lotterypost.com/thread/325975
# Requested by home on gimplearn.net
# https://gimplearn.net/viewtopic.php?f=34&t=2235#p24593
# Program specs:
# Take a first 2 digits or last 2 digits if it's odd
# ie.
# take number 750
# keep pair 75x
# perform mirror 20x
# front number repeat 77x
# back number repeat 55x
# half actual front half mirror 70x
# half actual back half mirror 25x
def mirr(digit): #mirrors a digit
return (digit+5)%10;
draw = input("Enter your last pick-3 result:")
print ("Number entered:",draw)
front_ = draw[0:2] #front pair
back_ = draw[1:3] #back pair
print ()
if int(front_) % 2 == 1: #front pair is odd
pair = front_
print ("Front pair " + pair + " is odd!")
keep = pair+"x"
mirror = mirr(int(pair[0]))*10 + mirr(int(pair[1]))
mirror = str(mirror) + "x"
front = pair[0] + pair[0] + "x"
back = pair[1] + pair[1] + "x"
half_front = mirr(int(pair[0]))*10 + int(pair[1])
half_front = str(half_front) + "x"
half_back = (int(pair[0]))*10 + mirr(int(pair[1]))
half_back = str(half_back) + "x"
s = keep + ", " + mirror + ", " + front + ", " + back + \
", " + half_front + ", " + half_back
print ("Pairs to watch:",s)
if int(back_) % 2 == 1: #front pair is odd
pair = back_
print ("Back pair " + pair + " is odd!")
keep = pair+"x"
mirror = mirr(int(pair[0]))*10 + mirr(int(pair[1]))
mirror = str(mirror) + "x"
front = pair[0] + pair[0] + "x"
back = pair[1] + pair[1] + "x"
half_front = mirr(int(pair[0]))*10 + int(pair[1])
half_front = str(half_front) + "x"
half_back = (int(pair[0]))*10 + mirr(int(pair[1]))
half_back = str(half_back) + "x"
s = keep + ", " + mirror + ", " + front + ", " + back + \
", " + half_front + ", " + half_back
print ("Pairs to watch:",s)
if int(front_) % 2 == 0 and int(back_) %2 == 0:
print ("Number does not have odd front/back pair!")
Code: Select all
Number entered: 313
Front pair 31 is odd!
Pairs to watch: 31x, 86x, 33x, 11x, 81x, 36x
Back pair 13 is odd!
Pairs to watch: 13x, 68x, 11x, 33x, 63x, 18x