Coding_tuts

Chō - Han

Chō - Han

Chō - Han 

import random 

ranum = int(random.uniform(1, 6))

ranum2 = int(random.uniform(1, 6))

erg = ranum + ranum2

rest = erg % 2

if rest == 1:

    print('Han')

else:

      print('Chō')

 

Thats a japanese gambling game. 

How do you rate this article?

0



Coding_tuts
Coding_tuts

Programming tutorials

Publish0x Publish0x

Reward the author with $0.01 in crypto, and earn yourself as you read!

20% to author / 80% to me.
Rewards are FREE. Publish0x pays them, not you.

Page not displaying correctly?