Instalar Bash de Ubuntu en Windows 10

--Originally published at Newbie Programmer

Hola, bienvenidos a este blog , en esta ocasión  se mostrara como instalar el Bash de Ubuntu en Windows 10. Es muy fácil su instalación y lleva a lo máximo 30 minutos.

Primero se necesita la Anniversary Update de Windows 10, la cual es la versión 1607. Esto se checa si en configuración nos vamos a Sistema> Acerca de. Importante: solo versiones de 64 bits.

captura-de-pantalla-3captura-de-pantalla-2

Después de comprobar si se tiene la versión correcta, proseguimos a volver a Configuración, solo que ahora nos vamos a la sección de Actualización y Seguridad, y en las opciones buscamos Para Programadores, en esas opciones  activamos el modo programador y esperamos a que Windows active ese modo.

captura-de-pantalla-4captura-de-pantalla-5

Después, abrimos el panel de control y nos vamos a la sección de Programas. en Programas le damos clic a Activar o desactivar las características de Windows. Después se abrirá una ventana en la cual buscaremos una Característica que se llame Subsistema de Windows para Linux (beta).

captura-de-pantalla-6captura-de-pantalla-7

Después de que le demos aceptar pasaran un corto lapso de tiempo, después aparecerá una ventana en la cual tendremos que reiniciar el equipo. Cuando el equipo se este reiniciando se visualizara una pantalla de Preparando Windows, como si hubiéramos actualizado el SO.Este proceso tardara algunos minutos.Captura de pantalla (8).png

Después de que se haya reiniciado el equipo, buscamos Bash, lo corremos y nos abrirá una ventana como si fuera el CMD de Windows. Lo único que debemos hacer a continuación es colocar y, esperar a que el proceso de instalación finalice y entonces nos pedirá el nombre del Usuario y una contraseña.

captura-de-pantalla-9

ximg_570998bb8323b.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.l29bWUELIg.png

Después de realizar este proceso, lo único que falta es abrir el Bash, buscamos de nuevo Bash y ahora se abrirá una ventana como esta. La cual es la terminal y se puede utilizar

captura-de-pantalla-11
Continue reading "Instalar Bash de Ubuntu en Windows 10"

More loops, loops everywhere, FOR LOOP.

--Originally published at Newbie Programmer

giphy
Me when i see a loop

Welcome to another post, and another loop.

In this case we explain the FOR loop. The for loop is used for the same things as the While Loop, but the for loop is for finite loops.

You can use Lists.

untitleduntitled2

If you put, for example the print (“A value”) into the loop, the words “A value” can be printed with every number.

f3f4

Range function.

f5f6

If you put a third number in the (), this number activates a function that says steps of 2 in the range.

f7f8

And you can use slices (strings) for the for loops.

f9f10

Source: https://www.youtube.com/watch?v=xtXexPSfcZg&list=PLQVvvaa0QuDe8XSftW-RAxdo6OmaeL85M&index=7

 

 


Use Python in Command Prompt and open python files

--Originally published at Newbie Programmer

Hello, this is a post to how to run Python in Command Prompt Windows 10, but before you need to have installed Python.

First you need to open the Command Prompt:Captura de pantalla (10)

Second: You need to know where is your python.exe

In my case i have mi python folder in the desktop and if you open the python.exe you can see where is python.exe.python.jpg

In this case python.exe is in C:\Users\angel\Desktop\Python\python.exe.

And this is How i run python in CMD

Captura de pantalla (11)

And now; How to run python files in CMD.

In the same screen of the CMD you can put exit() to close python, and now you write python and the name of the .py file Like This

arch

NOTE: PUT YOUR PYTHON .PY FILES IN YOUR PYTHON FOLDER.

archives

And this i how i run this files on CMD in Windows 10,i dont know if this metod is effective but works for me, remember im a Newbie and new doing blogs.

mindblowing.gif

A random gif.