import random def roll_dice(): return random.randint(1, 6) dice_roll_result = roll_dice() print(f"The result of rolling a dice: {dice_roll_result}")
Output:
The result of rolling a dice: 3
import random def roll_dice(): return random.randint(1, 6) dice_roll_result = roll_dice() print(f"The result of rolling a dice: {dice_roll_result}")
Output:
The result of rolling a dice: 3