Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
aureliemartinette’s Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Fri, 27 Nov 2015 21:46:56 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ WSQ17 #TC101 https://kenscourses.com/tc101fall2015/2015/wsq17-tc101/ Fri, 27 Nov 2015 21:46:56 +0000 http://aureliemartinette.wordpress.com/?p=362 ]]> Hi,

Today I wish share with you my solution to solve the wsq17.

I started to create a function to read the file and create a dictionary:

  1. I used the csv module to read line by line the file and convert each line in lists.
  2. I used two loops , one to read each line and another one to read each element of each line.
  3. I deleted the spaces thanks to strip() method.
  4. I created my dictionary: The keys are the movies and the set associated is all of the actors who play a role in.

Then I created each function to solve the problem.

Afterwards I created my main menu.

Here is my code:

https://github.com/aureliemartinet/TC101/commit/01bc06b6310ec70db2ae31f043801e436d110f3d

]]>
https://creativecommons.org/licenses/by/4.0/
BONUS article https://kenscourses.com/tc101fall2015/2015/bonus-article/ Thu, 26 Nov 2015 03:56:03 +0000 http://aureliemartinette.wordpress.com/?p=338 ]]> Hello,

I write this bonus article because I would like to share my experience with you about this Python classe.

According to me the Python classe with Ken Bauer is the best way to learn a programmation langage. You have to do some exercise each week to improve like an exponential function 🙂

Ken let you free , he is here if you need but it’s not always just closed to you to check if you do or not your work.

Learn if only for us, if you are not passionate you can do the minimum. In the other case you can take some advance with the homework and read all of the text book online that ken recommends. As you want ..

The goal to study a computer langage is to developed your logical, this classe really helped me even if I’m not passionate at 100% to be honnest.

I don’t code everyday but thanks to Ken I was more curious than usually about programmation stuff 😉

Thank you so much,

Aurélie

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 30 https://kenscourses.com/tc101fall2015/2015/mastery-30-2/ Thu, 26 Nov 2015 03:46:15 +0000 http://aureliemartinette.wordpress.com/?p=327 ]]> Hi,

Today it’s the last mastery that I posted 🙁

So, I have to explain you how it’s possible to read and write of files in Python.

It’s really easy you have just to write the name of your file and the mode that you want to used.

For example:

open (« nameofmyfile » , « r ») if you want to read it !

OR

open (« nameofmyfile », « w ») if you want to write it !

Have a good day !

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 29 https://kenscourses.com/tc101fall2015/2015/mastery-29/ Thu, 26 Nov 2015 03:41:54 +0000 http://aureliemartinette.wordpress.com/?p=316 ]]> Hi,

Today , I’m explaining you how validate an user input in Python.

We can focus on the WSQ06.

The user has to find the good number provides by the random function.

If the input is less, it’s indicated. The same case happened if the input is above.

The loop finish itself only if the number is found.

Have a good day !

 

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 25 https://kenscourses.com/tc101fall2015/2015/mastery-25-9/ Thu, 26 Nov 2015 03:16:54 +0000 http://aureliemartinette.wordpress.com/?p=303 ]]> Hi,

Today I want to show you the range function.

We can see it mostly in the for loop.

It works like this: range(start,stop,step)

  • start is not compulsory by default is 0.
  • step is not compulsory by default is 1.

The goal of this function is to do an arithmetic progression.

Have a good day !

 

 

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 24 https://kenscourses.com/tc101fall2015/2015/mastery-24-9/ Thu, 26 Nov 2015 03:10:41 +0000 http://aureliemartinette.wordpress.com/?p=293 ]]> Hi,

Today I want to explain you the concept of a tuple in python.

A tuple is a sequence of immutable Python objects.

The difference with the list is the syntaxe.

A list is with brackets whereas tuples with are parenthesis.

But be careful to access to one value you have to use some brackets as well !

list = [1,2,3,4]

tuple=(1,2,3,4)

tuple[0] = 1

Have a good day !

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 22 https://kenscourses.com/tc101fall2015/2015/mastery-22/ Thu, 26 Nov 2015 03:04:04 +0000 http://aureliemartinette.wordpress.com/?p=281 ]]> Hi,

Here is my method to choose between all of types of repetition in a program.

Well, when I know the number of times for the repetition; I used the for loop.

When I don’t know but I know the condition to stop the repetition I used the while loop.

The recursive method is a little bit more tricky. I used it generally in the math exercise whose I know the formula. For example: fibonacci or the greatest common divisor. (We can check the codes on my others articles in this blog)

Have a good day !

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 6 https://kenscourses.com/tc101fall2015/2015/mastery-6-6/ Thu, 26 Nov 2015 02:58:44 +0000 http://aureliemartinette.wordpress.com/?p=267 ]]> Hi,

Here is the steps to install Linux on your own computer:

  • Download a Virtual Machine whose the version matches with your computer. For example: I possessed a MAC , you have to download this specific version
  • Then, you have to download a version of Linus. I did it: Ubuntu or Lubuntu. This second version takes less place in your computer
  • After, you have to make some configuration between your Linus version and your virtual machine. Both have to be connected.
  • Click on the virtual machine icone
  • Click on your Linus version
  • A windows appears , you have Linus interface. You can start to work with it !

Have a good day !

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 5 https://kenscourses.com/tc101fall2015/2015/mastery-5-2/ Thu, 26 Nov 2015 02:52:40 +0000 http://aureliemartinette.wordpress.com/?p=253 ]]> Hi,

Today I’m going to explain you why is interesting to use Linus during exam or quizzes.

According to me it’s interesting to know this operative system.

  • First of all, Linus is used by mostly computer engineers. It’s a good occasion for us to learn how it works.
  • The interface is very different but it changes anything when we are programming.
  • We don’t have access to our code because the internet connexion is blocked. It’s not possible to copy-paste. This is good because it’s a good training for the partials. The goal is to show we if we are ready or not and if really we got the logical to create an algorithm.

Have a good day !

 

 

 

]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 2 https://kenscourses.com/tc101fall2015/2015/mastery-2-8/ Thu, 26 Nov 2015 02:44:56 +0000 http://aureliemartinette.wordpress.com/?p=238 ]]> Hi,

Today, I want to show you the ability to create Python project in IDE and run inside the IDE.

In this classes I used Atom but for other projects I used Ecclipse. Some IDE are specific for one programmation language.

The goal of all of the IDE is to help the programmer to code faster.

Advantages:

  • Colors : thanks to them you can know if the word means something in programmation. For example : def for a function , print to display..
  • There are some function when you press one button. We can work faster
  • A debug function is also included , it shows you in which line is your trouble.

Have a good day !

]]>
https://creativecommons.org/licenses/by/4.0/