Week 2 (July 6th-10th, 2015): Python

3355 0

11693199_10206435901517273_1141226206_n

This week, the AcadeCoders learn the wonderful coding language of python! Python’s design philosophy emphasizes code readability, and its syntax allows the campers to express concepts in fewer lines of code than would be possible in languages such as C ++ or Java. This week, campers will learn an introductory course to python, learning the basic syntax and functions; while taking on fun challenges.

 

Day 1 (July 6th, 2015)

In the morning, the campers were given a tour of Academie de la Capitale and given all camp rules in respect to the camp and computer use. Following the camp introductory tour, they began with Jiu Jitsu with instructor Daniella of K2 Martial Arts!

K2_patch_hor

11713455_10206435898997210_413821266_n 11694372_10206435900437246_1297819917_n

11717174_10206435900237241_722045115_n 11694217_10206435899597225_1194194965_n

After Jiu Jitsu, the campers began learning the introductory concepts of python  including variables, Booleans, whitespaces, and math operations.After they went through and understand the basics of python, they began their first challenge: Tip Calculator. In this challenge, campers take the basis of what they have been taught and apply it to using python to calculate tip on various high-end restaurant meals.

11667954_10206435901197265_1433192140_n Capture1

Capture1 11119818_10206435901477272_2119454952_n

11655401_10206435821555274_1249786048_n Capture6

After a wholesome lunch, the campers went to Morrison park to enjoy the beautiful weather! Campers played various playground games, played on the play structure, basketball, and touch football.

11720681_10206435820155239_1587766179_n 11717022_10206435821195265_250668967_n

11715918_10206435821115263_102706060_n 11720016_10206435821315268_1428620328_n

After outdoor play, campers were brought back to continue their afternoon of python. Campers worked on strings and console outputs. Campers learn to code strings, escaping characters, using upper and lower coding methods for strings, printing variables with strings, and advanced printing with explicit string conversion. Following that, campers were met with the challenge: Date and Time. In this challenge, campers had to create a database that keeps track of day and time. This challenge will look at getting the date and time with python, extracting information, and organizing it all.

11716132_10206435822435296_1753214981_n Capture8

Capture9 11717117_10206435898957209_1106532106_n

11720513_10206435822675302_1976661230_n Capture7

Day 2 (July 7th, 2015)

Once the AcadeCoders logged into their code academy account, they spent the first half of their morning learning about conditionals and control flow, following with several practice challenges and assignments. Conditionals and control flow are used to create programs that generate different outcomes based on their output and campers did this with comparators, Boolean operators, and If, Else, Elif statements.

In the second half of the morning, the campers took on the challenge: PygLatin. In this challenge, campers  apply their knowledge of python thus far and build a PygLatin translator. Following the challenge, the campers begin learning functions. Within functions, campers learn the basic function syntax, importing modules with generic and universal functions, and built-in functions.

11733362_10206437641000759_257578624_n Capture

Capture1 11717264_10206437639600724_1494395736_n

11713369_10206437645160863_1265431758_n Capture2

After a wholesome lunch and enjoying the sun with outdoor activities at Morrison Park, the AcadeCoders were back to complete the afternoon installment of python! They began with the challenge of planning their own vacation. This is where campers get to experiment with the knowledge they have obtained thus far and plan a vacation destination of their choice using python. This includes planning the trip in regards to destination, transportation, and hotels.

Following the challenge, the campers began to transition in learning lists and dictionaries. Lists and dictionaries are used to store, organize, and manipulate information.

11713413_10206437640280741_1232847326_n vacation

neighbours 11716112_10206437639080711_801913019_n

11720594_10206437638240690_2037072854_n key

Day 3 (July 8th, 2015)

Once all the campers were logged into their code academy account, they were ready to start a day full of exciting lessons and challenges of python! AcadeCoders began the first part of their morning with the challenge “A day at the supermarket!”. In this challenge, campers had to use looping with lists and dictionaries to devise their own store in a market and learn to organize selling and trading using python.

In the second part of their morning, campers had the second challenge “Students become the teacher”. In this challenge, the tables were turned as campers had to create a ‘challenge’ course to display to the instructors of all their  python knowledge thus far.

Morning2 Supermarket

Student1 Morning3

Morning1 Market2

After lunch, the campers were headed to Morrison Park for outdoor activities! This week the weather has been on our side with sunny and warm days, making it great for the campers to take part in various playground activities, playing on the splash pad, and basketball!

11733215_10206456240705740_2091685772_n 11737147_10206456241785767_1682570200_n

11722014_10206456241585762_1999153986_n 11716049_10206456241105750_1061504636_n

Once outdoor activities finished and campers had their snack break, they were back at python! Campers began their afternoon with Lists and Functions. Campers will learn to use functions with lists, manipulating and removing elements, and use two lists as two arguments in a function. For the rest of the afternoon, the campers began the challenge “Battleship!”. In this challenge, campers build a simplified, one-player version of the classic board game Battleship! In this version of the game, there will be a single ship hidden in a random location on a 5×5 grid. The player will have 10 guesses to try to sink the ship.

Morning5 Listfucntion

Battleship1 Morning6

Morning4 Battleship2

Day 4 (July 9th, 2015)

Loops! Loops! Loops! Loops are an essential portion to python and the AcadeCoders began their morning strong with learning the concepts of looping and attempt to apply to a few practice challenges. This includes creating their own loops, basic looping syntax, for loops, and creating complex lists and organizing information using loops.

In between the first half of the morning, the AcadeCoders had the pleasure of learning more Jiu Jitsu from instructor Daniella from K2 Martial Arts! The AcadeCoders were learning various break falls from various angles and positions from frontwards, sideways, and backward.

K2_patch_hor

11655145_10206456290106975_468888584_n 11721437_10206456289146951_1737472184_n

11736963_10206456290586987_46466399_n 11714299_10206456289546961_1834683514_n

In the second half of the morning, the AcadeCoders worked on the challenge “Practice makes perfect!”.This challenge is full of practice problems and the AcadeCoders worked in groups to take their programming skills to the next level by apply them to real life problems.

11713456_10206456287106900_2082640316_n Loops

Loops2 11737164_10206456286626888_368676184_n

11721085_10206456286746891_59370728_n Loops3

After a wholesome lunch, the AcadeCoders were off to a wonderful day at the park! The AcadeCoders have grown a close bond with constant playing and socialization among each other and devising games that included everyone!

11721980_10206456287666914_334067222_n 11720040_10206456288586937_770272175_n

11696409_10206456287946921_1001054559_n 11737068_10206456287986922_1719125717_n

In the afternoon, the AcadeCoders had one last challenge of the day; “Exam Statistics”. In this challenge, the AcadeCoders had to create a program to compute statistics without having to use a calculator and manually crunch numbers. Campers will have to supply a new set of numbers and organize those using python code. This mini-project will give campers some practice with functions, lists, and translating mathematical formulas into programming statements.

11725178_10206456285946871_202484155_o Stats3

Stats2 11720740_10206456286826893_432292817_n

11721983_10206456286106875_1237818122_n Stats1

Day 5 (July 10th, 2015) 

Last day of Python for the AcadeCoders! The AcadeCoders have worked hard this week going through various assignments and challenges; doing the best to learn all the key concepts within only five days. In the first part of the morning, the AcadeCoders worked on advanced topics in python. This part of the section covered various complex aspects in python, including iterating over data structures, list comprehension, list slicing, and lambda expressions.

In the second half of their morning, the AcadeCoders moved on to Bitwise Operators. These operators are used to manipulate bits, patterns of 0’s and 1’s. In all computers, numbers are represented with bits, a series of zeros and ones. In fact, pretty much everything in a computer is represented by bits. This section will introduce campers to the basic bitwise operations and then show them what you can do with them.

stefmor Advanced1

Bitwise1 stef2

stef3 Bitwise2

After lunch, the AcadeCoders spent another beautiful day at Morrison Park playing their various activities on the playground, basketball court, field, and splash pad.

Outside6 Outside4

Outside2 Outside3

In their final afternoon of Python, the AcadeCoders had one last challenge; “File Input/output”. In this challenge, the AcadeCoders had to learn the process of file I/O (the “I/O” stands for “input/output”), and Python has a number of built-in functions that campers will use. Campers will use the open() function to devise their own python code. Once the AcadeCoders finished their last challenge, they had free time for the last twenty minutes of the day!

Rod1 Output2

Output1 

Rod3 Output3

About The Author

No Comments on "Week 2 (July 6th-10th, 2015): Python"

Leave a Comment

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