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:
- Building Command Line Interfaces With argparse – Video Course
- Create Conway’s Game of Life With Python – Video Course
- Build a Tic-Tac-Toe Game With Python and Tkinter – Tutorial
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.