It outputs something that looks like this.
This is the original playscript I wrote for The Art of Python that took place at PyCon U.S. in 2019. I additionally performed the piece at PyCon with the directorial help of Sumana Harihareswara and the stage management work and acting performance as the Figure by Mel Chua. There were some changes to this script […]
The below rolls dice in python. I’ve long loved python for dice-rolling―having created a now defunct twitterbot and a mastodon bot―it was nice to write this up briefly as I’m working on re-re-re-learning python. #!/usr/bin/python3 from random import randint total_dice = int(input(‘How many dice? ‘)) dice_val = int(input(“How many sides? “)) rolls =  high_roll […]