Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.45 KB

File metadata and controls

60 lines (44 loc) · 1.45 KB
jupytext kernelspec
formats text_representation
md:myst,ipynb
extension format_name format_version jupytext_version
.md
myst
0.13
1.16.4
display_name language name
Python 3 (ipykernel)
python
python3

Chapter2: Python Codes

This chapter contain all the codes in the python programing language.

If you have to the access to the github repository of my Jupyter Book then I strongly recommand to read this chapter from the Chapter2.ipynb. Since this chapter is all about the codes therefore it will be easy to see the code and respective output.

For the detail information plese click see the LaTeX file.

Subsection

+++

This line is added from the notebook. So I open the Chapter2.ipynb file in notebook and I added this line. The purpose is to see if I can see this changes in the htttp link and also in the Chapter2.md file.

+++

Here is the mathematical equation $e^{\pi \iota}$

A = 2 
B = 6
C = A + B
print("The value of C is =", C)

$$Sin\theta = \frac{Prependicular}{Hypotenuse}$$

import matplotlib.pyplot as plt

# Example: Creating a simple plot
x = [1, 2, 3, 4, 5]
y = [10, 20, 25, 30, 35]

plt.figure(figsize=(6, 4))  # Set the figure size
plt.plot(x, y, marker='o', label='Line')
plt.title('Example Figure')
plt.xlabel('X-axis Label')
plt.ylabel('Y-axis Label')
plt.legend()
plt.show()  # Display the figure in the notebook