solution_275.py

#!/usr/bin/python3
# ====================================================================
# What is 0 to the power of 0?
# https://www.youtube.com/watch?v=r0_mi8ngNnM&t=283s
# ====================================================================

import matplotlib.pyplot as plt

# ---- x values

x = [ 1.0, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1,
      0.05, 0.02, 0.01, 0.001, 0.0001, 0.00001, 0.000001,
      0.0000001 ]

# ---- y values

y = []
for xx in x:
    yy = pow(xx,xx)
    y.append(yy)
    ##print(f'x={xx:0.8f}  y={yy:0.8f}')
    
# ---- initialize plot

plt.title('plot X**X')
plt.xlabel('X')
plt.ylabel('Y')
plt.grid(True)

# ---- plot x,y

plt.plot(x,y,color='black',linewidth=1.0)

plt.show()