1

Create Hello World!

Hi this is César the author of this blog, this post is made to explain some points about Python 3.
This post is for Windows users.


In this first post we will be seeing how to create a Python file and how to run it from the terminal, for this I’m going to use the famous phrase “Hello World!” and we will learn the basic output in Python, print().
The first step to begin with Python 3 is download Python 3 for its official website www.python.org , I recommend you to use the latest version.
The next step is download Cygwin a really nice terminal that will help you a lot
To download Cygwin, go to this website http://www.cygwin.com at the left side in the Install button, and then select the version you need.
It is important for the installation of Cygwin, select the Python option, because the other way it won’t work
Prevent errors and just install what you need in this case just Python 3 and Cygwin.

In Python we have something called Built-in Functions, these are the functions that Python has for default and always are available, within this 68 functions, there is the print()
Print() is a powerful and easy function, this function literally print the value you assign to it.
For example let’s say you want to print “Hello World”

Just open Notepad in Windows and type:

**Notice that print(), the value is inside the parentheses.

Mastery#1-Image01

And after this save your file as hello.py, as you can see python uses .py as extension, then open cygwin and look for the folder you save the python file (I recommend desktop) after that type: python3 hello.py, to run your script

Mastery#1-Image02

0

Quiz#7 Online Submission

Hi Ken this is my Quiz#7.

About the problems I think the first one was a bit easier than the second one, because in math we have seen, the formula to find the distance between two coordinates, about the second I think it was difficult because in the beginning I didn’t realize how I will do it, but as I look in internet about fibonacci series little by little I found a way to make it work!!!

 

Here are my codes:

Problem 1:

Problem 2:

0

WSQ10 – Lists

Hi again, it has been a while now I did a program that make a list, and with those numbers, output the sum, average and the standard deviation so to do this I appeal to the Python 3 Documentation here the link

https://docs.python.org/3/library/statistics.html#statistics.variance

Where you can find all about Statistics and I really recommend you to use this stuff, it is there for something, and you improve your autodidacticism.

Here a nice top of a guitar ❤

Foto taken from @one_forty_three

Here I let you the GitHub link of my code: