Closed albarron closed 6 months ago
adding \UseRawInputEncoding to prevent latex errors related to UTF-8 or the type:
! Package inputenc Error: Invalid UTF-8 byte sequence. This happens in the following snippet (inside of a beamer project with UTF8 encoding):
\begin{python}
def add_one(n): return n + 1
result = add_one(41)
print(result) \end{python}
adding \UseRawInputEncoding to prevent latex errors related to UTF-8 or the type:
! Package inputenc Error: Invalid UTF-8 byte sequence. This happens in the following snippet (inside of a beamer project with UTF8 encoding):
\begin{python}
define a function
def add_one(n): return n + 1
run the function specifying 41 as input
result = add_one(41)
print the result stored in the variable result
print(result) \end{python}