library(reticulate)
prose
y = [2, 4, 6] # Comment about len print(len(y)) # This comment about type should be attached to the code below. print(type(y))
prose
```{python, collapse=TRUE}
y = [2, 4, 6]
print(len(y))
print(type(y))
```r # Comparative Code for R x = c(2, 4, 6) # Output of length() is given just after the command (as expected) print(length(x)) # Comment about class is attached to the code below (as expected) print(class(x))
# Comparative Code for R x = c(2, 4, 6) # Output of length() is given just after the command (as expected) print(length(x)) # Comment about class is attached to the code below (as expected) print(class(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.