import lottery

print(lottery.lottery())
print(lottery.lottery(3))

print(lottery.lottery_comprehension())
print(lottery.lottery_comprehension(3))
Example #2
0
from lottery import lottery

lottery

print(lottery())

a = 7
b = 10

print(lottery(a))
print(lottery(a, b))

print(lottery(n=a, max=b))
print(lottery(max=b))
print(lottery(max=b, n=a))
Example #3
0
from lottery import lottery

print(lottery(max=49, n=6))  # [13, 45, 3, 21, 40, 39]
# breakpoint()
print(lottery(45, 6))
print(lottery())  # Standardwert: 6 aus 49
print(lottery(n=10))
from isprime import isprime

from lottery import lottery

print(isprime(91))
print(isprime(97))

lottery_numbers = lottery()

for number in lottery_numbers:
    print(number)
    print(isprime(number))
Example #5
0
 def test_example2(self):
     self.assertAlmostEqual(0.1909090909, lottery.lottery("100 10 2 2"), 10)
Example #6
0
 def test_example1(self):
     self.assertAlmostEqual(0.1, lottery.lottery("100 10 2 1"), 10)
Example #7
0
 def test_example4(self):
     self.assertAlmostEqual(0.0222222222222, lottery.lottery("10 2 1 2"), 10)
Example #8
0
 def test_example3(self):
     self.assertAlmostEqual(1.0, lottery.lottery("10 10 5 1"), 10)
Example #9
0
from lottery import lottery

print(lottery())
print(lottery(45, 6))
print(lottery(n=10))