1
1
<!DOCTYPE html>
2
- < html >
3
- < head >
2
+ < html >
3
+ < head >
4
4
< meta charset ='utf-8 '/>
5
- < script async =' async ' src ='https://cdn.datacamp.com/dcl-react-dev .js.gz '> </ script >
5
+ < script src ='https://cdn.datacamp.com/dcl-react.js.gz '> </ script >
6
6
< style >
7
7
.DCexercise .datacamp-exercise {
8
8
border : 2px solid # 3D678D ;
9
9
border-radius : 10px 10px 10px 10px !important ;
10
10
}
11
-
12
- * [class *= "lm_" ], .ace_gutter , textarea [class *= "ace_" ], .ace_scroller {
11
+ * [class *= "lm_" ], .ace_gutter , textarea [class *= "ace_" ], .ace_scroller {
13
12
background-color : # F0EFF0 !important ;
14
13
}
15
-
16
- div [class *= "Editor-module__editor" ], div [class *= "dcl__Footer" ] {
14
+ div [class *= "Editor-module__editor" ], div [class *= "dcl__Footer" ] {
17
15
background-color : # 3D678D !important ;
18
16
}
19
-
20
- * [class *= "lm_" ] {
17
+ * [class *= "lm_" ] {
21
18
border-radius : 10px 10px 0px 0px !important ;
22
19
}
23
-
24
- div [class *= "dcl__Footer" ] {
20
+ div [class *= "dcl__Footer" ] {
25
21
border-radius : 0px 0px 10px 10px !important ;
26
22
}
27
-
28
- .lm_content {
23
+ .lm_content {
29
24
border-radius : 0px !important ;
30
25
}
31
-
32
- .lm_splitter {
26
+ .lm_splitter {
33
27
background-color : # 3D678D !important ;
34
28
width : 3px !important ;
35
29
}
36
-
37
- .lm_drag_handle {
30
+ .lm_drag_handle {
38
31
background : transparent !important ;
39
32
}
40
-
41
- div [class *= "dcl__index-module" ] {
33
+ div [class *= "dcl__index-module" ] {
42
34
outline-color : transparent !important ;
43
35
border-radius : 10px !important ;
44
36
}
45
-
46
- button [class *= "secondary-light" ] {
37
+ button [class *= "secondary-light" ] {
47
38
background-color : # FF0000 ;
48
39
}
49
40
</ style >
50
- </ head >
51
- < body >
52
- < div data-datacamp-exercise data-lang ='r ' data-height =320 > < code data-type ="sample-code ">
53
- set.seed(123)
54
- # draw the winning numbers for this week
55
-
56
-
57
- </ code >
58
- < code data-type ="solution ">
59
- set.seed(123)
60
- # draw the winning numbers for this week
61
- sample(1:49, size = 6)
62
-
63
- </ code >
64
- < code data-type ="sct ">
65
- test_function("sample", args = c("x","size"))
66
- </ code > </ div >
67
- </ body >
68
- </ html >
41
+ </ head >
42
+ < body >
43
+ < div data-datacamp-exercise data-lang ='r ' data-height ="320 ">
44
+ < code data-type ="pre-exercise-code ">
45
+ # No pre-exercise code
46
+ </ code >
47
+ < code data-type ="sample-code ">
48
+ set.seed(123)
49
+ # draw the winning numbers for this week
50
+ </ code >
51
+ < code data-type ="solution ">
52
+ set.seed(123)
53
+ # draw the winning numbers for this week
54
+ sample(1:49, size = 6)
55
+ </ code >
56
+ < code data-type ="sct ">
57
+ test_output_contains("[1] 3 40 35 15 44 17", incorrect_msg = "Did you set the seed and use sample(1:49, size = 6)?")
58
+ success_msg("Great! You drew the winning numbers.")
59
+ </ code >
60
+ </ div >
61
+ </ body >
62
+ </ html >
0 commit comments