I need help to write a lottery game | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need help to write a lottery game

The user should input or chose 5 numbers from 0 to 20 Use try ans except to catch any exception and make sure your program Nevers crashes and end abruptly From the random model, input Sample function to help you out If thé computer producer the same set of values as the user then the user wins Give thé user 20 numbers if trial

6th Jan 2021, 4:09 AM
alexander
alexander - avatar
2 Answers
+ 3
Also, please specify which language you are using
6th Jan 2021, 7:31 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Please share the code you have written so far and indicate where you are stuck. We will help you once we have more info.
6th Jan 2021, 5:06 AM
Elizabeth Kelly
Elizabeth Kelly - avatar