TC101 (2016) – Course RE:view

--Originally published at Monty Python and the Blogging Tale

You will have to excuse me, but the next lines are going to be in Spanish:

El curso de Ken ya casi acaba,  y la verdad es que fue muy diferente a lo que esperaba. Debido a que es flipped learning, pues pensé que sería una clase donde no trabajaría, pues no suelo trabajar cuando no siento la presión de alguna entrega; y por ende, pensé que no terminaría haciendo las actividades de manera abrupta, y de último moento (lo cual hice, en parte). Pero este método de aprendizaje me motivó en cierta manera a no atrasarme en los temas de todo el curso. A pesar de que mis blogs son muy sencillos, trato de hacerlos con cariño y cuidado, pero sobre todo, creatividad. La experiencia que tuve en el curso de tc101 2016 fue gratificante.

Este curso está hecho para gente interesada en los temas y trabajadora, si no estás dispuesto a trabajar por ti mismo, entonces lleva clase con otro maestro.

I’ll give this course an A+

 


The Citizenfour

--Originally published at Monty Python and the Blogging Tale

So I just saw the movie Snowden (2016) and it was pretty entertaining. I mean, it was good, but not great. And the reason it was not as good as I thought it would be was that it does not really have a lot new to offer compared to the original documentary Citizenfour (2014), the are basically the same story, but with different format. So if you have watched one of them, you will not enjoy the other one as much.

But the story of Snowden is pretty interesting, and it really shows how easy it is to be spied on; and how one should not trust the internet. Also is battle of morals, I mean, what Snowden did was the ethical thing to do, but there are other points about how morally incorrect he was. Discussing about whether what Snowden did was correct or not is still a pretty divisive topic.

So give the movie, or the documentary ,or both a shot, it will be worth your time.

snowden_film_poster                                                mmt862-flat-packshot-large2.jpg


Counting on Hackerman’s House

--Originally published at Monty Python and the Blogging Tale

The other day my friend Paco and I were planning to work together, so we saw Ken’s challenge about counting frequency of words; however, at the time we did not know exactly how to start. By the time we decided to do something about it, a girl from the other TC101 (Dani Güemez) had already solved the challenge. But as we read and tested the code, we found a minor flaw: when counting the words in a text file, it separated and counted them by lines instead of counting them all. Here is the orginial code if you want to check it:

https://github.com/Guemez/TC1014/blob/master/countwords.py

Now, the code works fine for counting words in strings; thus, after a little bit of thought, we concluded that the best way to fix that minor error was to make the code convert the files into strings, and then count the words in them. And worked pretty fine. But we went even further and find the way to sort the counter by values. Here is the code:chidori

As you can see, we respected Dani’s format. And here is the final result, with the text we were using:lyrics

We are satisfied with the outcome.

 

This is the link to my friend Paco’s blog: https://firstprogrammingsteps.wordpress.com/

Also be sure to check out Dani’s blog: https://danigguemez.wordpress.com/

 

 


WHILE waiting FOR a new entry

--Originally published at Monty Python and the Blogging Tale

So, this is really easy to understand; when to use a WHILE loop and when to use a FOR loop. So it basically breaks down to what you know and what you do not know; if you do not know the extension or range of your data structure, then use a while; like for example, when you ask the user for an integer, you really do not know if the user is going to give you a number, so you create a while loop that repeats itself until the users gives you an integer:while

But if you actually know the extension of your data structure (it could be a list, or a tuple), use a for:

for

As simple as that.


BubbleSorting things

--Originally published at Monty Python and the Blogging Tale

So one of Ken challenges required arranging numbers in order; I knew how because it was not the first time I have used a BubbleSort, but one thing that I never learned was to arranging list in alphabetical order… thus, here are my codes.

Bubble sort for numbers, it was super easy:

random

And the output:

bubble

And now for the alphabetical sort:

bubble

And the ouput:

alph

Easier than I thought.


Random Numbers

--Originally published at Monty Python and the Blogging Tale

So I decided to take another exercise from kencourses, and it was kind of tricky, but I could complete it. The challenge was creating a code that selected a number between 1 and 100, and the user had to guess the number, no matter the number of attempts. The code gives you clues as you keep trying:

numbers2

And here is the result:

random

Check out the code at my Github:

Kenxercises/Random.py

 


I need posts, like now

--Originally published at Monty Python and the Blogging Tale

I now face one of the most challenging thing ever for a blogger… creativity. I should have posted an “other” but related post a while ago, but I  did not, why?, because I am lazy. That is the problem, I was too lazy to post, and now I need something to post; so in this post I am not only going to tell you the sad story about my lazyness, but also show how not to be a student in KenCourses.

  • Never miss a class, unless you have to
  • Always use the time in class to work in something related to it
  • Do not do in other classes what you can do in Ken’s Courses
  • Do not be lazy like me
  • Do not do everything at the last minute
  • Do not do empty posts to cheat the course
  • Be creative with what you do
  • Try to ask your classmates if you need help
  • Use twitter more often
  • Ask on #TC101
  • Answer questions on #TC101
  • Try to comment on other people’s blogs to congratulate them or give them feedback
  • Do not play League of Legends on campus
  • Do not Pokemon GO to the polls
  • I am out of ideas
  • This is not the Zen of KenCourses
  • Thou shalt not cheat
  • Post like crazy (things related to the class)
  • Green is not a creative color
  • Keep scrolling

Now let’s be serious, do not be lazy, just try to work harder; Ken’s class is as important as the other ones, just try to make an effort.

Now go and code some stuff.

 

 


I think I do not get modules

--Originally published at Monty Python and the Blogging Tale

I need to import them so I can do some stuff that python alone cannot do. They seem like a cool thing to have around, but there are so many of them that I do not even now which one to use; I have to be mainstream and use the math one. I mean, in javascript I did not even know I was using modules, and now I have to specify which one I am using. I know how to import them and all that stuff, but I think I need to get my favorites, or else I will not like any of them; did that make sense? I think not, but you get me. I am a desperate student who is pressured by the exams. Anyway, here is my code:modulesI just printed system32. And I am very happy.


Monty Python and the Zen of Coding

--Originally published at Monty Python and the Blogging Tale

I think I get it, but I do not get it.

It’s kind of funny how someone could actually come up with this.

“Zen of Python”

Tim Peters must be a genius, Monty Python level:

I mean, coming up with a philosophy for a coding language is just pure gold.

Link for the Zen: https://www.python.org/dev/peps/pep-0020/

This Zen just summarizes the simplicity and utility of python.