My very first Python program
- Renee Li
- Oct 11
- 1 min read
Starting form today and as for the following 30 days onwards, my goal is to complete the "Python projects for beginners" designed by Code with Mosh.
The aim is to help me get familiarized with Python syntax and key concepts, before I move on more advanced Python concepts.
Without further due, let's get started!
So, in this first very simple exercise, Mosh asks to build:
A dice rolling game
The logics is explained here:
roll dice y or n with user input validation
we need user to input y or n and if y give a random number between 1 and 6 if n exit the program. if other input ask again

while true to make it keep running until break.
Reflection:
Compared to C#, I do feel easier with Python. I don't need to put types and overthinking too much about user validation and exceptions, and I have done this program in 2 minute!
I am happy!
Stay tuned!



Comments