Skip to content

Commit fe8c9c4

Browse files
committed
style code correctly
Styled code with fenced code blocks and syntax highlighting.
1 parent 6452ac2 commit fe8c9c4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Day-3/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Here is one approach to building your function:
1010

1111
This line of code is how you can return heads:
1212

13-
return "heads"
13+
```python
14+
return "heads"
15+
```
1416

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

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

2628
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.
2729

28-
totals[5] = 99
30+
```python
31+
totals[5] = 99
32+
```
2933

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

32-
print totals[5]
33-
36+
```python
37+
print totals[5]
38+
```
39+
3440
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.
3541

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

0 commit comments

Comments
 (0)