Codehs 4.3.5 Rolling Dice Answers Link

Ensure you are comparing numbers, not strings. In Python, use str() to concatenate a number with a string in a print statement .

import random

In the 4.3.5 rolling dice problem, you're tasked with simulating the roll of two six-sided dice. The goal is to write a function that takes no arguments and returns the result of rolling the two dice. codehs 4.3.5 rolling dice answers

CodeHS is an online coding platform that provides interactive coding lessons and exercises for students of all skill levels. The platform offers a comprehensive curriculum that covers various programming languages, including Python, JavaScript, and HTML/CSS. Ensure you are comparing numbers, not strings

Select your language

English country flag English