Skip to content

Instantly share code, notes, and snippets.

View elliott-king's full-sized avatar

Elliott King elliott-king

View GitHub Profile
@elliott-king
elliott-king / 364_diceroll.py
Created June 18, 2018 19:08
DailyProgrammer problem #364.
"""
r/DailyProgrammer Challenge #364
Dice Roller
2018 - 06 - 18
https://www.reddit.com/r/dailyprogrammer/comments/8s0cy1/20180618_challenge_364_easy_create_a_dice_roller/?st=jiklnspm&sh=2cffa04e
"""
from random import randint
def identify_dice(dice_string):
i = dice_string.find('d')