segunda-feira, 19 de dezembro de 2016

sábado, 10 de dezembro de 2016

First time coding


 Free course made by USP (Universidade de São Paulo) Brazil

Hi, my name is Lucas. I’m from Brazil and I’m (since now) blogging about my experiencie learning how to code. I’m starting with the Python language, using a free course at Coursera. So far I’m loving it!

Prime number or not?

Today I wrote a code that says if a number is a prime number or not. The coolest exercise assignment for today, and yet not the hardest.


Much harder for me was to figure out a way to tell if a certain number has a couple of equal adjacent digits inside of it, or not. For example: 1223 = yes; 1234 = no.