Challenge 4
First Run the code below, then try and recreate the hidden code without looking!
challenge4.py
import random
rolls = int(input("Enter number of dice rolls: "))
counter = 1
summ = 0
print(str(rolls) + " dice rolls using a Python loop:")
while counter <=rolls:
dice = random.randint(1, 6)
print(dice)
counter += 1
summ += dice
print("The sum of all dice was: " + str(summ))