Hello,
using the second version of the UK Lotto above I have redone the EuroMillions Python script.
![[Image: eunext.png]](https://preview.ibb.co/iSNU1T/eunext.png)
EuroMillions new version with less typing, and improved comment lines, running on Linux Lite in Terminal and showing code in Gedit.
I save this to a Leafpad document in Home folder and named this eunext.py
Here is the code
To run this open terminal by holding down Ctrl and Alt keys and pressing t (Ctrl+Alt+t)
Then copy/paste or type
I hope you enjoyed reading this.
using the second version of the UK Lotto above I have redone the EuroMillions Python script.
![[Image: eunext.png]](https://preview.ibb.co/iSNU1T/eunext.png)
EuroMillions new version with less typing, and improved comment lines, running on Linux Lite in Terminal and showing code in Gedit.
I save this to a Leafpad document in Home folder and named this eunext.py
Here is the code
Code:
# imports random function
import random
# labelling for lotto number output
print ("Your EuroMillions numbers are - ")
# Picks 5 random numbers between 1 and 50
# range goes to 51 so that 50 is inclusive, 51 is not inclusive
# .sample does not duplicate numbers picked
# Outputs these 5 results in a list
print(random.sample(range(1, 51),5))
print ("Your Lucky Stars are - ")
print(random.sample(range(1, 13),2))
# interactivity - prints options
print ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")
To run this open terminal by holding down Ctrl and Alt keys and pressing t (Ctrl+Alt+t)
Then copy/paste or type
Code:
python eunext.py
I hope you enjoyed reading this.