<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>question for programmers</title>
		<link>https://www.lotterypost.com/thread/325322</link>
		<atom:link href="https://www.lotterypost.com/rss/topic/325322" rel="self" type="application/rss+xml" />
		<description>Lottery Post Forum Topic: question for programmers</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Reply #11</title>
			<link>https://www.lotterypost.com/thread/325322/5832647</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5832647</guid>
			<pubDate>Tue, 12 Feb 2019 19:49:04 GMT</pubDate>
			<dc:creator>lottoswe</dc:creator>
			<description><![CDATA[<p>i tested program but it output 0?!<br /><br />I tested with your example and with my numbers but i get only 0.</p>]]></description>
			<category>lottoswe</category>
		</item>
		<item>
			<title>Reply #10</title>
			<link>https://www.lotterypost.com/thread/325322/5832572</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5832572</guid>
			<pubDate>Tue, 12 Feb 2019 18:56:41 GMT</pubDate>
			<dc:creator>oate</dc:creator>
			<description><![CDATA[<p>Don&#x27;t put a line break after draws = . When I copied and pasted the code here it created a line break that shouldn&#x27;t be there. It should be like this<br /><br />draws = [ 123 , 234 , 345 ]<br /><br />or whatever your data is<br /><br />As to your other question about calculating profit, the general formula is<br /><br />(amount won) - (amount spent) = profit</p>]]></description>
			<category>oate</category>
		</item>
		<item>
			<title>Reply #9</title>
			<link>https://www.lotterypost.com/thread/325322/5832558</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5832558</guid>
			<pubDate>Tue, 12 Feb 2019 18:44:11 GMT</pubDate>
			<dc:creator>lottoswe</dc:creator>
			<description><![CDATA[<p>So, 8 winners of 23.<br /><br />23*125 = 2875<br /><br />8*500 = 4000<br /><br />profit 4000-2875 = 1125<br /><br />Is this right</p>]]></description>
			<category>lottoswe</category>
		</item>
		<item>
			<title>Reply #8</title>
			<link>https://www.lotterypost.com/thread/325322/5832168</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5832168</guid>
			<pubDate>Tue, 12 Feb 2019 13:49:21 GMT</pubDate>
			<dc:creator>lottoswe</dc:creator>
			<description><![CDATA[<p>Hi,<br /><br />i get this<br /><br />syntax error line 34 draws</p>]]></description>
			<category>lottoswe</category>
		</item>
		<item>
			<title>Reply #7</title>
			<link>https://www.lotterypost.com/thread/325322/5831610</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5831610</guid>
			<pubDate>Tue, 12 Feb 2019 00:04:09 GMT</pubDate>
			<dc:creator>oate</dc:creator>
			<description><![CDATA[<p>Whoops, forgot import itertools at the top.</p>]]></description>
			<category>oate</category>
		</item>
		<item>
			<title>Reply #6</title>
			<link>https://www.lotterypost.com/thread/325322/5831592</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5831592</guid>
			<pubDate>Mon, 11 Feb 2019 23:43:09 GMT</pubDate>
			<dc:creator>oate</dc:creator>
			<description><![CDATA[<p>def switch_list(dig): #single digit as string<br /><br />a = [ 0 , 1 , 5 , 8 , 9 ]<br /><br />b = [ 2 , 3 , 4 , 6 , 7 ]<br /><br />if dig in a:<br /><br />return b<br /><br />elif dig in b:<br /><br />return a<br /><br />else:<br /><br />return error<br /><br />def gen_new_nums(str): #3- or 4-digit string<br /><br />list_of_lists = []<br /><br />for i in range(len(str)):<br /><br />list_of_lists.append(switch_list(str[i]))<br /><br />if error not in list_of_lists:<br /><br />new_list1 = list(itertools.product(*list_of_lists))<br /><br />new_list2 = []<br /><br />for t in new_list1:<br /><br />t = .join(t)<br /><br />new_list2.append(t</p>]]></description>
			<category>oate</category>
		</item>
		<item>
			<title>Reply #5</title>
			<link>https://www.lotterypost.com/thread/325322/5831491</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5831491</guid>
			<pubDate>Mon, 11 Feb 2019 22:21:41 GMT</pubDate>
			<dc:creator>lottoswe</dc:creator>
			<description><![CDATA[<p>Hi,<br /><br />idea was that program check past draws, apply conditions and count how many times winner was in those 125 numbers.</p>]]></description>
			<category>lottoswe</category>
		</item>
		<item>
			<title>Reply #4</title>
			<link>https://www.lotterypost.com/thread/325322/5831388</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5831388</guid>
			<pubDate>Mon, 11 Feb 2019 20:23:59 GMT</pubDate>
			<dc:creator>oate</dc:creator>
			<description><![CDATA[<p>This is python code (Python 3). You can run it on https://sagecell.sagemath.org/ if you don&#x27;t have python installed on your computer. Just make sure you choose python from the drop down list of languages.<br /><br />import itertools<br /><br />def switch_list(dig): #single digit as string<br /><br />a = [ 0 , 1 , 5 , 8 , 9 ]<br /><br />b = [ 2 , 3 , 4 , 6 , 7 ]<br /><br />if dig in a:<br /><br />return b<br /><br />elif dig in b:<br /><br />return a<br /><br />else:<br /><br />return error<br /><br />def generate_new_numbers(str): #3- or 4-digit string<br /><br />list_of_lists = []<br /><br />fo... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/325322/5831388">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>oate</category>
		</item>
		<item>
			<title>Reply #3</title>
			<link>https://www.lotterypost.com/thread/325322/5831341</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5831341</guid>
			<pubDate>Mon, 11 Feb 2019 19:35:53 GMT</pubDate>
			<dc:creator>lottoswe</dc:creator>
			<description><![CDATA[<p>Sorry for that :-(<br /><br />I wrote it in systems forum because it is kind of system. I hope somebody can excel it to check if it&#x27;s profitable.</p>]]></description>
			<category>lottoswe</category>
		</item>
		<item>
			<title>Reply #2</title>
			<link>https://www.lotterypost.com/thread/325322/5831298</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5831298</guid>
			<pubDate>Mon, 11 Feb 2019 18:56:20 GMT</pubDate>
			<dc:creator>Todd</dc:creator>
			<description><![CDATA[<p></p>]]></description>
			<category>Todd</category>
		</item>
		<item>
			<title>Reply #1</title>
			<link>https://www.lotterypost.com/thread/325322/5831278</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322/5831278</guid>
			<pubDate>Mon, 11 Feb 2019 18:41:26 GMT</pubDate>
			<dc:creator>NumbersWin4</dc:creator>
			<description><![CDATA[<p>Yes it s possible</p>]]></description>
			<category>NumbersWin4</category>
		</item>
		<item>
			<title>question for programmers</title>
			<link>https://www.lotterypost.com/thread/325322</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/325322</guid>
			<pubDate>Mon, 11 Feb 2019 18:27:26 GMT</pubDate>
			<dc:creator>lottoswe</dc:creator>
			<description><![CDATA[<p>Hi,<br /><br />is it possible to make program to check this (for pck 3 and pick 4):<br /><br />A - 0,1,5,8,9<br /><br />B - 2,3,4,6,7<br /><br />take last draw (let&#x27;s say 123) and check next draw.<br /><br />How many times numbers from A followed numbers from B (and vice versa) vertical?<br /><br />In this case 1 2 3 next draw can be :<br /><br />after 1 comes 2 3 4 6 7<br /><br />after 2 comes 0 1 5 8 9<br /><br />after 3 comes 0 1 5 8 9<br /><br />It&#x27;s only 125 straight numbers per draw.</p>]]></description>
			<category>lottoswe</category>
		</item>
	</channel>
</rss>

