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.


A radius function

--Originally published at Monty Python and the Blogging Tale

So I wanted to create a simple function, and I needed to do a math homework; so as the great millenial that I am, I solved my problems by doing two tasks at once:

Behold my sphere function!

funcionI am really proud of my work, the only problem that I had was with converting the input to integers.

Ignore the comment at the beginning, I wast just testing if I knew how to use functions.


Post = {Basic types: same but different}

--Originally published at Monty Python and the Blogging Tale

Well, we need to learn the basic types beacuse python. So I am going to explain them the easy way, as always; in python there are these things called variables, that have no personality whatsoever; thus, they need you to define them by assigning them values. In python there are three kinds of values:

Numbers: which are integers (1), floats (1.0), and complex (1j). These are super simple.

Strings: They are words. “Words”

Lists: They can be a list of both strings and numbers.

Tuple: They are basically lists that cannot be modified.

Dictionaty: They consist of a key and a value; it is weird to explain.

And to show you that I have practiced them:

basic

But I need to give credit to the page that actually showed me those basic types (that happens to be the second entry in the google search):

Link: https://www.tutorialspoint.com//python3/python_variable_types.htm

 

 


Insanely Nasty Programming Utterly Trascendental

--Originally published at Cheba's Vlog

I just clickbaited you. Srry bruh. Or sys. Or trans non binary folk. I am not assuming your gender.

Here is my input: InmanI really do not have creativity right now, but you can crearly see how to put an input.

So now I have nothing more to show you; so I am going to review the new Purge movie:

It is not good; it is hilarious, but as a movie is pretty bad, like a B movie level of stuff.

You are still reading? Well you crearly wasted 30 seconds of your life… input is not that hard, it is harder to install python than creating an input, come on pal.

 


Python comment etiquette

--Originally published at Cheba's Vlog

Want to know how to comment? Like really? I did not even know to use python two weeks ago and I knew how to comment. Use a # if you just want to comment one line, and three of these  ” guys (or girls, no one knows )  if you want to use more than one line. Easy as that.Comment

Comments are easy to use, but the consecuences of commenting can be dangerous. Peope on the internet are very agressive when it comes to the comment section. So you need to know the next things (the list can be expanded):

  • You can be attacked very agressively if you comment an unpopular opinion
  • You can be banned on certain sites if you have a different opinion
  • You will be seen as an idiot if you have an unpopular opinion
  • You will offend everyone if you have an unpopular opinion (specially if you are a white dude living in a first world country)
  • You cannot give your opinion if its different from the popular belief
  • Criticism is the same thing as harasment
  • You only have freedom of speech if you agree with the popular opinion

If you follow these rules, you are now experiencing the marvels of the internet comment section. Congratulations! If you want to learn more about these rules, just read the new Ghosbusters trailer’s comment section.


Dr. Hello World or how I stop worrying and love python

--Originally published at Cheba's Vlog

So I was supposed to upload this blog like a week ago, but I am what some people call a lazy person. So I did my code as a good student:Hi world

What I found myself asking is why in the programming languages I have learned (which are two, if you are wondering) the first thing you do is learn how to print “Hello World”. So I did a little bit of research (I say a little bit because I only checked the first two results from Google); and I found that “Hello World” is used as the most basic task to test if a language works correctly. It is believed that the original text was “Hi” but was changed to “Hello World” because it has a bigger number of characters. It was interesting to learn something about the history of programming.

I consulted this website, if you want to read more about the topic:

The History of Hello World

And now you are wondering why I chose that jazzy title; it is because I love cinema and I cannot avoid making references to movies.


Dr. Hello World or how I stop worrying and love python

--Originally published at Cheba's Vlog

So I was supposed to upload this blog like a week ago, but I am what some people call a lazy person. So I did my code as a good student:Hi world

What I found myself asking is why in the programming languages I have learned (which are two, if you are wondering) the first thing you do is learn how to print “Hello World”. So I did a little bit of research (I say a little bit because I only checked the first two results from Google); and I found that “Hello World” is used as the most basic task to test if a language works correctly. It is believed that the original text was “Hi” but was changed to “Hello World” because it has a bigger number of characters. It was interesting to learn something about the history of programming.

I consulted this website, if you want to read more about the topic:

The History of Hello World

And now you are wondering why I chose that jazzy title; it is because I love cinema and I cannot avoid making references to movies.