This is a video of me explaining my mansplaining in simple terms of my test corrections that I got incorrect. During class we had the opportunity to review the answers as a class, and individually go over the questions. I went over booleans, if/else statements, and random integer statements.
Today we reviewed functions and parameters during our lesson today, we made we can and will afirmations to begin our review. Here were mine: "I will be able to define and call functions that take in parameters as inputs" & "I can explain the purpose of a function". After today's lesson, I was able to correctly be able to do these things. This code is essentially tripling the parameter, or value of x. In this code, I gave the parameter values "4, 5, & 2". I first had to define it before calling it, and assign the parameter trippling to "tripled_num". That way I could just print it. This was a simple way of being able to triple any given number when I call the function.
Today we reviewed functions and parameters again, but more specfically sum and math problems in code. In this assignment, we had to be able to convert a given amount of inches into meters. For this lesson my I can statement was, "I can use python functions to solve real problems". I successfully defined the variable "convert_inches_to_feet" in my code and directed each math unit (inches, centimeters, and meters) to get down to meters. Every time I called the functions, inputting different variables, the code still ran appropriately and successfully!
Today in class we learned and continued our lesson of functions and parameters, while adding in return values. I was able to define and call functions by the end of this class. In the picture to the left, you can see me writing out a code that will quadruple any number that I assigned to the variable of "x". I called it a few times with different numbers to ensure it was successful!