7
submitted 1 year ago by pineapple@lemmy.ml to c/programming@lemmy.ml

For a school project I need to make a simple python program. I need ideas so if you have something that you want made for you then please post it here. I'll release it here under a gnu general public license once I've finished.

you are viewing a single comment's thread
view the rest of the comments
[-] StopSpazzing@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

Give me lotto numbers.

Edit: to be more specific USA mega millions lotto numbers.

five random numbers from 1 to 70 (the white balls) and one random number from 1 to 24 (the Mega Ball).

[-] solrize@lemmy.ml 4 points 1 year ago
>>> import random
>>> random.sample(range(1,71),5),random.choice(range(1,25))
([43, 8, 15, 66, 28], 17)
this post was submitted on 13 Jun 2025
7 points (81.8% liked)

General Programming Discussion

10011 readers
1 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 7 years ago
MODERATORS