SEARCH W7R

Wednesday, December 19, 2012

Python 3.2 Tutorial 1: Hello World!

w7r.blogspot.com

Python 3.2 Tutorial #1: Hello World!


Tutorial 1 contents: Code, and explanation for HelloWorld.py followed by useful information about Python in general.


# HelloWorld.py
# Python 3.2 Tutorial Part 1
# w7r.blogspot.com
# Brian R. H.

# the main method/function
def main():
print("Hello World!")

# Call to main function
main()

How to Run HelloWorld.py on Your Computer!

Tuesday, December 18, 2012

Holiday Headache Relief

w7r.blogspot.com

Calm down. It's the holidays! Be greatful for what you have and do not fight for the material possessions in stores like the general public! Perhaps, gracefully shopping online is a better option. Here are a handful of sites that can alleviate your holiday headache.

Seasons Greeting, eCards!


Popular Online Stores

This post will be undergoing frequent modification until Christmas Eve 2012.

Sunday, September 30, 2012

Java "Hello World" Program

w7r.blogspot.com

Traditionally, "Hello world" is the first program created in any programming language by new users to ensure they are able to compile and run their program in the given language. So I thought it'd be a good idea to post up the code for HelloWorld.java on the site for java beginners.

public static void main(String[] args){
System.out.println("Hello, World!");
}

Breaking Down The Code

System.out.println(string)
This statement (or line of Java code) informs the System to print the string (or text referred to by the variable, string) to the console (where output is displayed).
"Hello, World!"
is a string literal. String literals are text that are actually written and displayed exactly as the programmer wrote them. You could replace the text inside the quotation marks with anything you would like to be outputted to the console.