Advanced Topics in Python

In todays lab we tested all our python skills to complete complex codes. In the codes we incorporated our iterating skills to iterate over data structures. We also put into display our listing comprehension skills.List slicing was one of the listing skills we had to know. We also had to use lambda expressions to complete some codes.

Screen Shot 2015-12-04 at 4.04.25 PM Screen Shot 2015-12-04 at 4.04.31 PM Screen Shot 2015-12-04 at 4.04.36 PM Screen Shot 2015-12-04 at 4.04.41 PM

A Day at the Supermarket

For todays assignment, we were asked complete “A Day at the Supermarket” in codecademy. In this assignment we incorporated our knowledge of lists and dictionaries. We also had to use some input functions, we used for loops for some of the codes we had to write. We even included conditions in our codes.

Screen Shot 2015-11-20 at 6.21.48 PM Screen Shot 2015-11-20 at 6.21.53 PM Screen Shot 2015-11-20 at 6.21.57 PM Screen Shot 2015-11-20 at 6.22.00 PM Screen Shot 2015-11-20 at 6.22.03 PM Screen Shot 2015-11-20 at 6.22.07 PM Screen Shot 2015-11-20 at 6.22.10 PM Screen Shot 2015-11-20 at 6.22.14 PM Screen Shot 2015-11-20 at 6.22.17 PM Screen Shot 2015-11-20 at 6.22.22 PM Screen Shot 2015-11-20 at 6.22.25 PM Screen Shot 2015-11-20 at 6.22.29 PM Screen Shot 2015-11-20 at 6.22.32 PM

BATTLESHIP!

The assignment “Battleship” which we completed in Codecademy was a huge success and it was fun to code. In this assignment we combined all our knowledge about conditions and functions and lists to create this board-game. We incorporated a lot of different codes to this. We used for loops and range. We also used raw input for one part. It was a fun project.

Screen Shot 2015-11-14 at 2.59.09 PM Screen Shot 2015-11-14 at 2.59.16 PM Screen Shot 2015-11-14 at 2.59.20 PM Screen Shot 2015-11-14 at 2.59.25 PM Screen Shot 2015-11-14 at 2.59.30 PM Screen Shot 2015-11-14 at 2.59.35 PM Screen Shot 2015-11-14 at 2.59.40 PM Screen Shot 2015-11-14 at 2.59.49 PM Screen Shot 2015-11-14 at 2.59.58 PM Screen Shot 2015-11-14 at 3.00.06 PM Screen Shot 2015-11-14 at 3.00.33 PM Screen Shot 2015-11-14 at 3.00.57 PM Screen Shot 2015-11-14 at 3.01.16 PM Screen Shot 2015-11-14 at 3.01.37 PM Screen Shot 2015-11-14 at 3.02.05 PM Screen Shot 2015-11-14 at 3.02.35 PM Screen Shot 2015-11-14 at 3.03.18 PM Screen Shot 2015-11-14 at 3.03.53 PM

DATE AND TIME

In today’s lab we completed Date and Time assignment in Codecademy. We learned to use datetime.now() to retrieve the current date and time. We did this by first importing the datetime library so that we can use it. We also imported special operators like “%” in certain strings.

date and time.kevin dnt2 dnt3 dnt4 dnt5 dnt6

Fruitful functions

In todays lab we wrote functions with return values. We also learned that in fruitful function, return statements includes a return value. In todays lab we defined a function called check_fermat and gave it parameters then we used the built in function <<raw_input>> and made the user input always be an integer.

Screen Shot 2015-10-16 at 8.39.50 PM

PygLatin

 

 

 

 

In todays lab we incorporated our skills to complete PygLatin in Codacademy. We created strings with letters and numbers. In some inputs we entered strings that contained non-alphabetical characters and we also created a series a branches . We also completed conditionals and control flows in Codacademy. By completing this we learned how to create programs that generate different outcomes based on user inputs.

Screen Shot 2015-10-09 at 7.43.32 PM Screen Shot 2015-10-09 at 7.43.55 PM Screen Shot 2015-10-09 at 7.43.58 PM Screen Shot 2015-10-09 at 7.44.01 PM Screen Shot 2015-10-09 at 7.44.04 PM Screen Shot 2015-10-09 at 7.44.15 PM Screen Shot 2015-10-09 at 7.44.23 PM Screen Shot 2015-10-09 at 7.44.33 PM Screen Shot 2015-10-09 at 7.44.38 PM Screen Shot 2015-10-09 at 7.44.46 PM Screen Shot 2015-10-09 at 7.44.50 PM Screen Shot 2015-10-09 at 7.45.00 PM Screen Shot 2015-10-09 at 7.45.05 PM Screen Shot 2015-10-09 at 7.45.09 PM Screen Shot 2015-10-09 at 7.45.11 PM Screen Shot 2015-10-09 at 7.45.17 PM Screen Shot 2015-10-09 at 7.45.47 PM Screen Shot 2015-10-09 at 7.45.53 PM Screen Shot 2015-10-09 at 7.45.57 PM Screen Shot 2015-10-09 at 7.46.03 PM Screen Shot 2015-10-09 at 7.46.08 PM Screen Shot 2015-10-09 at 7.46.13 PM

Turtle Blast

Today we were introduced how to draw pictures using Turtle Graphics. We learned some basic turtle control functions and how to import them into our Python programs. Today we created a program that moves an arrow different directions but all based on the commands and angles you give it.

Screen Shot 2015-09-18 at 7.38.39 PM Screen Shot 2015-09-18 at 7.38.48 PM

Taking a Vacation

Today i completed the Functions and Taking a Vacation assignments in Codecamedy. I learned about different types of functions, parameters and arguments. I learned a lot of new incorporations that i will be applying to future python assignments.  Screen Shot 2015-09-11 at 4.54.25 PM Screen Shot 2015-09-11 at 4.54.31 PM Screen Shot 2015-09-11 at 4.54.38 PM Screen Shot 2015-09-11 at 4.54.43 PM Screen Shot 2015-09-11 at 4.54.47 PM Screen Shot 2015-09-11 at 4.54.50 PM Screen Shot 2015-09-11 at 4.54.54 PM Screen Shot 2015-09-11 at 4.54.57 PM Screen Shot 2015-09-11 at 4.55.02 PM Screen Shot 2015-09-11 at 4.55.06 PM Screen Shot 2015-09-11 at 4.55.09 PM Screen Shot 2015-09-11 at 4.55.12 PM Screen Shot 2015-09-11 at 4.55.16 PM Screen Shot 2015-09-11 at 4.55.19 PM

Tip Calculator

Today I learned about variables, data types, whitespaces, comments and arithmetic operations. I put into practice some of these skills and completed the Tip Calculator assignment in Codecademy.

Welcome!

This is the first post on your Learning Blog. Edit or delete it, then start blogging!

The ePortfolio is both a Learning Blog and an Academic Career Portfolio. Use the Learning Blog to document your learning experiences and class assignments each semester. As time goes by, add content to the Academics and Career sections to show your department, graduate institutions, or future employers how well prepared you are for your chosen career.

NOTE: Remember to add appropriate Categories and Tags to your posts. This will help your professors and other visitors find the content they are looking for. The Categories “Coursework” and “Field Trips” and the Tags “OpenLab” and “City Tech” have already been applied to this post. Feel free to make changes!