Little explorations with HP calculators (no Prime)
|
12-27-2018, 10:20 PM
Post: #323
|
|||
|
|||
RE: Little explorations with HP calculators (no Prime)
(12-27-2018 04:59 PM)DavidM Wrote: please be kind Here's a variant of your program: Code: import random The function match_count uses generator expressions. And since random.shuffle shuffles in place we can reuse thelist. You can use enumerate to iterate over a list when both index and value are needed. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)