기본 콘텐츠로 건너뛰기

라벨이 game인 게시물 표시

pandas_ta를 적용한 통계적 인덱스 지표

Rolling Dice

import numpy as np mn = 1 mx = 7 ​ roll_again = 'yes' ​ while roll_again == "yes" or roll_again == "y" : print ( "Rolling the dice" ) print ( "The values are " ) print ( np . random . randint ( mn , mx )) roll_again = input ( "Roll the dices again?" ) Rolling the dice The values are 1 Roll the dices again?y Rolling the dice The values are 2 Roll the dices again?y Rolling the dice The values are 2 Roll the dices again?y Rolling the dice The values are 4 Roll the dices again?y Rolling the dice The values are 2 Roll the dices again?n