Code
import numpy as np
= np.random.normal(size=100)
x import matplotlib.pyplot as plt
plt.hist(x)
plt.show() np.mean(x)
-0.15575763627302536
[UNDER CONSTRUCTION]
This is an example of using qmd as the source document.
import numpy as np
= np.random.normal(size=100)
x import matplotlib.pyplot as plt
plt.hist(x)
plt.show() np.mean(x)
-0.15575763627302536
\[ \theta = \int_0^\infty f(x,\theta)d\theta \]
This content can be styled via the border class.
This is an example of a callout with a title.
This code is not executed.
<- function(fbnums = 1:50) {
fizz_buzz <- dplyr::case_when(
output %% 15 == 0 ~ "FizzBuzz",
fbnums %% 3 == 0 ~ "Fizz",
fbnums %% 5 == 0 ~ "Buzz",
fbnums TRUE ~ as.character(fbnums)
)print(output)
}
fizz_buzz(3)
This code is executed.
def fizz_buzz(num):
if num % 15 == 0:
print("FizzBuzz")
elif num % 5 == 0:
print("Buzz")
elif num % 3 == 0:
print("Fizz")
else:
print(num)
3) fizz_buzz(
Fizz
Default | Left | Right | Center |
---|---|---|---|
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |