Lab description: Being able to set proper functions with arguments along with calculations
Experience: Was definitely hard and tricky at first, really had to think a lot more than the lab we did previously.
Lab Description – For this lab we were to use our knowledge of loops in terms of how it relates to lists and dictionaries. The pictures show the correct codes needed in order to finish this lab.
Experience – Was pretty straight forward, had no problems due to my understanding of loops, lists, and dictionaries.
In this lab I had to know about lists, conditionals, and functions in Python. In codecademy we were told to make a game called “Battleship”. we were to guess 10 times who sank the battleship.
Experience of the lab: To be honest this lab was really hard to do. But when I had complete knowledge of how things works I got it right. Still I think it was the hardest one to do.
This assignment used Fermat’s last theorem and Python codes to check if his theorem works. The assignment began with defining check_fermat with random numbers selected by a user. Next, I use the if and else statements to check if the numbers selected by the user worked with the theorem or not. The second part of the assignment was to use my own selection of numbers to test Fermat’s theorem, I used the integer input to put my own number when the program asked. I tested the theorem with different numbers until it came back that Fermat was right. This assignment was difficult towards the end because i could not get the right numbers to have the program result that Fermat’s theorem was right.
Lab description: In the following we were to use strings to program the date and time — to keep track of when something happened. The following pictures below will show you the codes that I used, to be able to complete the lab.
Experience: It wasn’t as tricky as I expected it to be. Was pretty easy and straight forward.