A random number is generated , generate it again if it does not match a condition. How to do?

前端 未结 0 1569
迷失自我
迷失自我 2021-01-17 12:13

I am a Newbie currently taking an online python course.

    # Generate Number 1
from random import choices
population = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
we         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题