print("Hello, world!")
Hello, world!
August 14, 2024
@online{rasheduzzaman2024,
author = {Md Rasheduzzaman},
title = {Python {Basics}},
date = {2024-08-14},
langid = {en},
abstract = {Variable, Object, vector, fucntions, etc.}
}
๐ฌ Have thoughts or questions? Join the discussion below using your GitHub account!
You can edit or delete your own comments. Reactions like ๐ โค๏ธ ๐ are also supported.
---
title: "Python Basics"
abstract: "Variable, Object, vector, fucntions, etc."
---
```{r}
#| include: false
source(here::here("src/helpersrc.R"))
```
```{r, echo=FALSE}
#install.packages("reticulate")
library(reticulate)
reticulate::use_python("/Users/md.rasheduzzaman/miniconda3/bin/python")
```
## Intro
```{python, echo = TRUE}
print("Hello, world!")
```
## np array
```{python, echo = TRUE}
# Your Python code
#py_install("numpy"")
import numpy as np
arr = np.array([1, 2, 3, 4, 5])
print(arr * 2)
```