You’ve coded a fully functional project consisting of a text-based user interface application that simulates the rolling of six-sided dice in Python. With this project, you learned and practiced fundamental skills, such as gathering and validating the user’s input, importing code, writing functions, using loops and conditionals, and displaying nicely formatted output on-screen.
In this video course, you learned how to:
- Use
random.randint()
to simulate the rolling of dice - Take the user’s input at the command line using the built-in
input()
function - Parse and validate the user’s input using several tools and techniques
- Manipulate strings using methods, such as
.center()
and.join()
Here are additional resources mentioned in the course: