It is currently 16 Dec 2019, 06:09

The Lottery Forum - Lottery Generators
• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

The lottery forum section of gimplearn.net will be here for historical purposes, as we have
created a brand new stand-alone forum at https://gimplearn.net/thelotteryforum/.
Please try to register and post there instead

TLF Topics: Active | Unanswered | Random
TLF Posts: Unread | New | Random
Lottery Forum
     Lottery/General Program Requests | Lottery Generators |🡆 Lottery CodeSkulptor Programs
     General Programs
     Chit Chat
Social:  Say Hello | Anything Goes | Shares

Odds into Pairs to Watch for (CS Program)

Lottery Programs coded in CodeSkulptor
Forum rules
This forum is now locked.
Please visit The Lottery Forum (New)
Locked
tim
GL Blogger

Odds into Pairs to Watch for (CS Program)

Post#1 by tim » 17 Mar 2019, 20:03


Requested by home in the Odds into Pairs to Watch for - request.
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!")
Sample program output:

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
aka Tin
:tree_02:
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         
0


TLF Topics: Active | Unanswered | Random
TLF Posts: Unread | New | Random
Lottery Forum
     Lottery/General Program Requests | Lottery Generators |🡆 Lottery CodeSkulptor Programs
     General Programs
     Chit Chat
Social:  Say Hello | Anything Goes | Shares

Locked
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest