Labs

LAB 1- Due 9/8/2015

Learning how to use Tip Calculator using codeacademy.org, the person is given several commands and instructions to follow and the person would type in the command.If the person received an error, there were hints to help the person achieve the objective. The lab was helpful because it introduced me to the first stages of coding, and what type of language I will have to use when programming in order for me not to get an error.

p1p2p3p4p5

LAB 2- Due 9/25/2015

Using code academy I was able to plan out a vacation and the trip costs: rental,spending money, and the city I wanted to stay in. Something that was used various times during this lab were the commands:else,elif,if and also return. This lab really helped me learn how to solve math problems, well in this case a word problem using Python. It was very instructive and detailed and it definitely makes you see the different uses that Python has.

1

2

3

LAB 3- Due 9/29/2015

In this lab I have created what’s called a turtle blast using the information from the text “Think Python” and also the interactive online textbook. Using the knowledge from the practice labs in class of creating a square, I learned how to use the for and in function as well as how could range make your code simpler and quicker to write.

Turtle blast

LAB 5- Due 10/20/2015

In todays lab we wrote functions with return values. We also learned that in fruitful function, return statements includes a return value. I defined a function called check_fermat and gave it parameters, then we used the built in function <> and made the user input always be an integer.The parameters that were given were that if n is greater than 2 then the result would print “Fermat was wrong!”, but if n equals to anything else it would print “No, that doesn’t work.”

fermat theorem

LAB 6- DUE 10/27/2015

During this lab we learned how to use strings to cover the necessities that we have in our daily lives like knowing the time and date.

1

2

3

4

5

6

LAB 8 – Due 11/30/2015

In this lab we learn how to loop different functions using lists and dictionaries, and how using a dictionary or a list could make coding much simple,efficient, and quicker.

pics

LAB 9 – Due 12/1/2015

In this lab we learned how to use lambdas and filter in order to save time when programming also how to do more with a list than what we did in the last lab, like reversing a list, or doing certain operations to the list by using filter and list slicing.

1

2

3

4

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.