Skip to content

Commit

Permalink
style code correctly
Browse files Browse the repository at this point in the history
Styled code with fenced code blocks and syntax highlighting.
  • Loading branch information
A1fus committed Oct 16, 2015
1 parent 6452ac2 commit fe8c9c4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Day-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Here is one approach to building your function:

This line of code is how you can return heads:

return "heads"
```python
return "heads"
```

That's it! Test it out and see how many times can your program flip a coin a second.

Expand All @@ -25,12 +27,16 @@ This program uses an array named totals. An array is a variable that remembers a

This is how you can set a specific slot in the array. In this example we are setting spot 5 (remember it counts starting at zero) to be 99.

totals[5] = 99
```python
totals[5] = 99
```

This is how we can look up what the number is in a spot and print it out. This would print 99

print totals[5]
```python
print totals[5]
```

Your job is to complete the dice_roll() function. It should roll two 6-sided dice and add the rolls together. It should return their total.

That's it! Test it and see if it is faster or slower than the coin flip program.
Expand Down

0 comments on commit fe8c9c4

Please sign in to comment.