Skip to content

Instantly share code, notes, and snippets.

View guillermohernandez's full-sized avatar

Guillermo Hernandez Jr guillermohernandez

View GitHub Profile

Keybase proof

I hereby claim:

  • I am guillermohernandez on github.
  • I am memohernandez (https://keybase.io/memohernandez) on keybase.
  • I have a public key ASC3cGv_RT825U-r0dSZXWHhkimc-jTBVOePPINvHmXfnQo

To claim this, I am signing this object:

CROmetrics Engineering Application

Thanks for your interest in working with us! To apply:

  • Create a "new gist" (link in github header once you're logged in) with the Raw Text of this .md file (do not fork this gist)
  • Answer the following questions in the spaces provided
  • Send an email to tom@crometrics.com and chris@crometrics.com that includes:
    • A paragraph that tells us a little about yourself and why you are interested in this job
    • A link to your Gist
    • Your desired hourly rate and general availability

Exercise Nº 1 Using a nested for loop, print the string "hello" 12 times. Use different combinations of numbers. For example, the outer loop would loop 6 times and the inner one 2 times (6*2 = 12). Etc.

Exercise Nº 2 Create a nested for loop to produce the following string:

*
**
***
//product.js
function product(sku, name, description, price) {
this.sku = sku;
this.name = name;
this.description = description;
this.price = price;
}
//store.js shorted to 3 products
function store() {
first_num = raw_input("Please input first number: ")
#line 1 asks for input, much like prompt() in javascript and saves it to a variable first_num
sec_num = raw_input("Please input second number: ")
#same as above but saves it in the sec_num variable
answer = int(first_num) + int(sec_num)
#so int is like javascript's parseInt() and turns the input into a whole number.
#first_num and sec_num get saved in the answer variable