It is currently 16 Dec 2019, 06:11

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

Toilet Paper Method for Pick 3 Grid (CS Program)

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

Toilet Paper Method for Pick 3 Grid (CS Program)

Post#1 by tim » 19 Mar 2019, 22:05


This post has been moved to new forum: Click here to see.

Code for reference:

Code: Select all

# Toilet Paper Method for Pick 3 Grid
# source: https://www.lotterypost.com/thread/325752
# Requested by homer
# https://www.gimplearn.net/viewtopic.php?f=34&t=2248

num = input("Enter last Pick-3 draw result (ie. 872):")

root = num
while int(root) > 9:
    root = str(sum(map(int,root)))
row1 = num+root

row2 = ""
for n in row1:
    item = str((int(n)+1)%10)
    row2 += item

row3 = row1[::-1]

row4 = ""
for n in row3:
    item = str((int(n)+2)%10)
    row4 += item

print ("You've entered:",num)
print ("Toilet Paper Pick 3 Grid below:")
print (row1)
print (row2)
print (row3)
print (row4)
Sample data output result:

Code: Select all

You've entered: 467
Toilet Paper Pick 3 Grid below:
4678
5789
8764
0986
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

homer
Forum Member

Post#2 by homer » 19 Mar 2019, 23:00


Thanks!
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