Taking a vacation

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.

getting-theretransportation pull-it-together hey-you-never-know plan-your-trip

UNIT 10 REVIEW

Description: This was the review part of the “Dictionaries” in Python. We had to apply methods of dictionaries to get printed something given i the instructions.

Experience: The experience of the lab was pretty good. It was easy to do. We already knew about it. So we just reviewed it in this lab.

screenshot-191screenshot-192screenshot-193screenshot-194

A DAY AT THE SUPERMARKET

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.

capture capture2 capture3 capture4 capture5 capture6 capture7 capture8 capture9

BATTLESHIP

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.

capture1 111 12 13-1 14 15 16 17

FRUITFUL FUNCTION

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.

 

DATE AND TIME

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.

1 2 3 4 5 6

Turtle Graphics

Description:  In the following lab, you have had to first import turtle, and import random.  Than command the window color  “red”, next you have had to make the pen color of the turtle “jannatul” to be the color white. After doing so you have had to type the following codes that are in the picture below.

Experience: Was definitely hard at first, and definitely frustrating at first, but after just a few moments of thinking, applying my python skills, and using my brain I finally realized how to complete the code-and was able to get end result.

t1 t2