Green Day

--Originally published at My Home

The other day I was on YouTube when something caught my attention, Green Day had uploaded a video, it was a live performance at the AMA’s.

They performed Bang Bang, their new single, and to be honest, was amazing; however, was pretty controversial because of what Billie sang at the middle of the song.

Just enjoy the video.

 

#GreenDay


Review of this class

--Originally published at My Home

This class was really interesting. I had a great time in this class.

I was not expecting a class like this in my first semester; however, was a pleasant surprise.

This class it’s really good if you are willing and you have some background or the idea of how to code, but do not worry, if you don’t and you have the will to learn this class is going to be great for you.

If at anytime you have a question Ken will always help you or he will find a way to make your problem much simpler.

 


Recursion for Repetitive algorithms

--Originally published at My Home

Recursion is mainly used when you have to repeat a procedure several times.

In order to do so, you call a function insde itself… Wuuuuut?

Yep, that’s possible.

yei

And done.?

For more information you could use the following Blog (it’s  a Ken’s course XD)

MASTERY 21 Use of recursion for repetitive algorithms

?


Creation and use of strings

--Originally published at My Home

Creating strings is the easiest thing in Python… You just do the following:

kitchen = “Food”

Done… Yep, you already have created a string?

But there are more uses like

strng

srt

This code is to print the hole string, count how many elements does that string have and take a single element of it.

Here, have another tutorial just in case:

#TC101 #Python3 #Strings


While Loops

--Originally published at My Home

While loops are pretty simple.

lol

As you can see in the previous image, that’s actually how a while loop is made… Yep it is really that simple; however, you got to be very careful when you do it, because if you don’t indicate how to end  the program, it will run forever. That’s why I highlighted the z += 1, Because if you don’t show the program where to stop, you’ll get something like this:lolol

Instead of this:

lololol

If you still don’t understand, have this tutorial:

#TC101 #WhileLoops

 


Else and Elif

--Originally published at My Home

As we saw before the “If” is very useful in the art of programming, but there is another part of the “If” which are the ones that make the code even mor accurate, because when one of the option is not the correct we can choose what to do when the second outcome occurrs.

ha ham

If you don’t really understand, you can use the following tutorial.


If

--Originally published at My Home

The conditional if isn’t something that I haven’t explained before; However, here it goes again.

The if conditional is basically used to make a code more than ready when it confronts 2 or more different situations.

It is helpful when you can have different outcomes in the same code, it could be either beacuse of the interaction of the user or because a function you created earlire has different outcomes.

if1 if2

I don’t think it needs more explaniation than that…