Monday, November 10, 2014

day 2 of learning python (20% time)

20% time day 2     Nov. 10 2014

     I did a lot of research over the weekend on Python. I learned a few commands and features in the language. One is called "print". print literally just prints something to the console(the console is just command prompt running your code). To use print you would write," print(" ")" and whatever is inside the parentheses and quotes would be printed to command prompt. Another feature is creating a variable. A variable is assigned something that you can bring up in your code later on.
~~~
print("hello")

variable = ("i made a variable")

print(variable)
~~~
     the above example would first print "hello" to the console. then it would set the variable, variable to the value of "i made a variable". next it prints variable which is the same as "i made a variable".
The code would run this:
~~~
hello
i made a variable
>>>
~~~
SWAGPECE

Friday, November 7, 2014

Twenty Percent Time Swag

     11/7
Hey I'm Jack. Every one in my class is doing something called 20% time. Basically we use the whole class period on Fridays to do something. It doesn't matter what we do, as long as we are helping ourselves with it. I immediately knew what I wanted to do. I'm gonna learn a programming language. I already know one programming language. It's called Batch. It uses Windows DOS to manage files and run things through command prompt. I am going to try and learn Python. Python is an object-oriented language. It was implemented in 1989, and it was created by Guido van Rossum. I'm going to use a site called 'www.codecademy.com' to learn Python. If you want to view my account, the name is Jadsmith.