SEARCH W7R

Showing posts with label FreeCode. Show all posts
Showing posts with label FreeCode. Show all posts

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!

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.

Saturday, June 16, 2012

Comparison Table HTML Code

w7r.blogspot.com

Copy and Paste This to Your Site!

The table is on top of the source code that I used to create the table. So feel free to copy and paste that code to your blog posts or website to save yourself the time and trouble.

Object A Both A and B Object B
  • difference 1
  • difference 2
  • difference 3
  • difference 4
  • similarity 1
  • similarity 2
  • similarity 3
  • similarity 4
  • difference 1
  • difference 2
  • difference 3
  • difference 4


Object A Similarities Object B
  • difference 1
  • difference 2
  • difference 3
  • difference 4
  • similarity 1
  • similarity 2
  • similarity 3
  • similarity 4
  • difference 1
  • difference 2
  • difference 3
  • difference 4