Member

[email protected]

Total likes received: 98 | Pubby Cash: 932


Articles Liked by Me: 87

How to Play the Lottery Game on Gopubby.com

Categories: Tech | Pubby Cash Received:  0

If you are reading this article, you probably do not know how to play the lottery game on gopubby.com. If you do not know how, you should read this article because it will answer most of your questions. To play lottery at Gopubby.com, you just need to buy a lottery ticket for 10 Pubby Cash. The ticket includes three nonrepetitive numbers of your choice between 0 to 9. Everyday between 12:00 and 12:30pm, the winning numbers will be announced. If your ticket of the three numbers match the winning numbers, you will win the grand prize. If two of the three numbers match the two of the winning numbers, you will win a small price. If you are wondering the possibility you can make to win the grand prize, the correct answer is one out of one hundred twenty. To win the small prize, the chance of one out of fifteen. But why is this important for the lottery? Well, the number of combinations you can make shows the chance that you could win the grand or small prize. Now, I will explain how to calculate the possibility of combinations. The formula to calculate it is This may look confusing if you have never heard of this formula, but I will try my best to explain it. n is the number of different items that you can choose. r is the number of items that you are allowed to choose. ! just means you are multiplying it by the same value each time but subtracting one each time it is multiplied. You do this until it gets to one. For example, 3! is equal to 3*(3-1)*(3-2) or 3*2*1. This would be equal to 6. Let's try out this formula with the real Powerball numbers. This formula would be There are 31 numbers to choose from and you can only choose 5 of those 31 numbers. After calculating this, our final answer was 169,911 or about 170,000. That means out of about 170,000 people, only one person would win the grand prize. You can also write this as a decimal, by dividing 1 by 170,000. That means that there is a 0.00058824% chance of winning if you are playing real Powerball. However, when playing on Gopubby.com, out of ten numbers you pick three. The formula for this situation would be After calculating this there is a one out of 120 chance of winning the grand prize or a 0.833% chance of winning. Gopubby.com also offers a small prize winner, which means guessing 2 of the 3 numbers correctly. The formula for this situation is Considering the winning numbers are a set of three numbers, which offers three possible combinations of two numbers, so, 45/3 = 15. There would be a one out of 15 or 6.67% chance to win the small prize. As you can see, winning a lottery on Gopubby.com is a lot easier than winning one on Powerball. Now, I...  Read more

How to Create a Lottery System Using Python

Categories: Tech | Pubby Cash Received:  0

Do you know what Powerball is? If you do not know what it is, it is a lottery game. The computer randomly generates a set of 5 numbers between 1 through 31, and you have to try to guess it. If you guess all the numbers right, you get a lot of money. But if you guess some of the numbers correctly, you get a fraction of the money. In this article, I will explain how to create a lottery system using python. First of all, we will make the guessing numbers 0 to 9. We will also make a set of 3 numbers. This will make it easier to guess the number. The first thing you want to do is to make a winning set of numbers. We also need to make a few guesses using a dictionary. Here is an example. pool = {'andy':[(1,2,3),(2,3,4),(3,4,5)],'evan':[(1,7,3),(5,9,8),(4,3,7)] win = [7,4,3] After that, you need to make a few variables. Here is an example. big_tickets_numb = 0 #how many grand prize tickets big_winners = {} #who was the big winner or winners small_tickets_numb = 0 #how many small prize tickets small_winners = {} #who was the small winner or winners big_pcts = {} #percentage of money the big winner gets small_pcts = {} #percentage of money the small winner gets After making a few variables, you need to start looping them, because you want it to check your guesses multiple times. To do this, use the a for loop. You can also make a match_count variable to see how many times your guesses matched the real answer. Here is an example. for k in pool:     for j in range(len(pool[k])):         match_count = 0         for i in range(len(pool[k][j])):             if pool[k][j][i] in win:                 match_count += 1         if match_count == 2:             small_winners[k] = small_winners.get(k,0) + 1             small_tickets_numb += 1         if match_count == 3:             big_winners[k] = big_winners.get(k,0) + 1             big_tickets_numb += 1 Then, you need to figure out how much percent each person gets if multiple people get the same winning value. To do this use an if statement followed by a for loop and then return those values. The big winner gets 80 percent of the money and the small winner get 20 percent of the money. But if two people both get the big money or the small money, then we must divide them equally. Here is an example. if small_winners:     for k in small_winners:         small_pcts[k] = small_winners[k]*0.2/small_tickets_numb if big_winners:     for k in big_winners:         big_pcts[k] = big_winners[k]*0.8/big_tickets_numb return small_winners,small_pcts,big_winners,big_pcts Finally, put all of what you just did into a function and then print it. Here is an example. def lottery_winner(pool, win): #Put everything you just did right here small_winners,small_pcts,big_winners,big_pcts = lottery_winner({'Evan':[(1,2,3)]},[1,2,3]) print(small_winners,big_winners) print(small_pcts,big_pcts) If you did all of that, you should have a working lottery system....  Read more

How to make people at a higher level access more information than ones at a lower level using Python.

Categories: Tech | Pubby Cash Received:  0

Do you know how to people at a higher level access more information than ones at a lower level using Python? Well, if you do not know how, here is a way to do it. Let's say that you want people above level 4 to access other user's locations, but not people below level 4. You can do this by making two parts. For example, one could be info and the other one could be info_m. The info means what people below level 4 see and info_m means what people above level 4 see. Then you would assign each one their value. Here is an example. info = f"{content['region']} {content['country']}" info_m = content Once you did that, you can go to your HTML. In your HTML, use an if statement and an else statement. Here is an example. if level > 4 print(info_m) else print(info) After that, save your code by pressing the Ctrl and the S key at the same time. Finally, run your code....  Read more

What is an IP address

Categories: Tech | Pubby Cash Received:  0

Do you know what an IP address is? Well, the IP address stands for internet protocol address. An IP address is 4 or 6 groups of numbers separated by a period. A group of 4 numbers is known as IPv4 and a group of 6 is known as IPv6. Each group of numbers must be between 0 and 255. For example, 123.123.123.123 is a valid one, but 321.321.321.321 is not. This is because 321 is greater than 255. You might be wondering what an IP address does. Well, it is a tool made for devices so they can connect to a computer network that uses the Internet Protocol for communication. It can also be used to track your physical location....  Read more

What's the difference between MySQL and SQLite?

Categories: General, Tech | Pubby Cash Received:  0

MySQL and SQLite are probably the most famous decisions for information the executives. SQLite is record based — the database comprises of a solitary document on the circle, which makes it amazingly versatile and solid. Although it may seem like a "straightforward" DB usage, SQL is utilized in SQLite. SQLite is intended to be incredible for both creating and testing and offers more than what is required for improvement. When To Use SQLite: - Embedded applications: SQLite is an extraordinary decision of database for applications that need transportability and doesn't require future development. Models incorporate single-client neighborhood applications and versatile applications or games. - Disk get to substitution: In situations where an application needs to peruse and compose records to plate legitimately, it very well may be gainful to utilize SQLite for the extra usefulness and straightforwardness that accompanies utilizing SQL. - Testing: For some applications, it tends to be needless excess to test their usefulness with a DBMS that utilizes an extra server process. SQLite has an in-memory mode that can be utilized to run tests rapidly without the overhead of genuine database tasks, settling on it a perfect decision for testing. Then again, MySQL is exceptionally simple to work with. For example, it tends to be effortlessly introduced, outsider devices make it a straightforward database to begin with, and it's improved with highlights. It bolsters a great deal of SQL usefulness that is normal from an RDBMS. MySQL is made sure about, which makes it exceptionally progressed, as well. It can even deal with a decent measure of information and subsequently can be utilized at-scale. Most definitely, MySQL works productively and adequately. When To Use MySQL: - Distributed tasks: MySQL's replication bolster settles on it an incredible decision for appropriated database arrangements like essential optional or essential structures. - Websites and web applications: MySQL powers numerous sites and applications over the web. This is because it is so natural to introduce and set up a MySQL database, just as its general speed and adaptability over the long haul. - Expected future development: MySQL's replication backing can help encourage flat scaling. Moreover, it's a moderately clear procedure to move up to a business MySQL item, as MySQL Cluster, which underpins programmed sharding, another level scaling process....  Read more

1 ... 7 8 9 ... 18

Daily Deals


MECHANICSBURG WEATHER