Module One: Python Fundamentals

 For this module, we were tasked with creating and learning about the fundamentals of python scripting. We needed to successfully complete a dice games, where the ending script portrayed the different roles of each player, the named unlucky number, and its removal. We learned how to implement different methods such as splitting and counting as well as how to formulate a proper code with multiple phrases and functions like when it came to removing the unlucky number and using the while loop to allow for the desired outcome to occur. We also learned how to get into the spyder software by a sort of shortcut. 

This lab was somewhat challenging because it implemented a lot of specific and technical language, that if not entered correctly, will give an error and you're back to square one. I ran more into issues of invalid syntax and not using the right quotations or parentheses at the correct moment. The easiest method I learned was the coding for splitting and what I need to look for when coding in the future. Below is a screenshot of my results from coding with the different methods and functions. 


I will say, with it being my first time ever scripting and utilizing the methods of the count, split, and the while loops were easy to understand once I was successful in my code. The errors were sometimes difficult to work through because I felt I was entering the correct format of coding when I was missing one small detail or detail was in the incorrect spot. Of course, after working in this lab and re-entering the different coding sequences, I can see how detrimental the details are and how easily something can be messed up from one error. I am hoping to hone in on these different methods and functions and get comfortable with scripting and the steps it takes to create a successful script. 

Comments

Popular Posts