You might want to look at this approach
import random as rnd def odd_even(): return rnd.choice(['odd', 'even']) def red_black(): return rnd.choice(('red', 'black')) for i in range(5): print(odd_even()) print('\n') for i in range(5): print(red_black())
Output:even
odd
even
odd
even
black
red
red
black
black
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags