Removing code that isn't used or doesn't do anything, you have
x0 = 1
y0 = -1
h = 0.05
# Value of x at which we need approximation
x = 1.1
def second_order(x0,y,h,x):
while x0 < x:
y = (3/(x**3))+(3*(y**2)/x)+2*(y**3)
x0 = x0 + h
print("Approximate solution at x = ", x, " is ", "%.6f" % y)
second_order(x0,y0,h,x)
This code does not compute $y(x)$ as x0 walks from $1$ to $1.1$. (I wish there were an intelligible way to write that sentence. Here, let me rewrite your code to do what it appears it wants to do but so that the variable names actually correspond to the semantics of their values.)
xStart = 1
yStart = -1
xEnd = 1.1
h = 0.05
x = xStart
y = yStart
while x < xEnd: # This only allows the last
# pass through the loop because the
# internal represenation of 0.05 is very
# slightly less than 1/20. Probably
# better to use x <= xEnd if you want x to
# *reach* xEnd for various values of
# xStart, xEnd, and h.
y = (3/(x**3))+(3*(y**2)/x)+2*(y**3)
x = x + h
#Uncomment the next line to get your own table of intermediates.
#print(x,y)
print("Approximate solution at x = ", x, " is ", "%.6f" % y)
Now we have $(x,y)$ tracing out a curve where xStart${} < x < {}$xEnd. Which curve? Well, let $x_0 = {}$xStart${} = 1$ and $y_0 = {}$yStart${} = -1$. For $1 \leq i \leq 2$, let $x_i = x_0 + i$h${} = x_0 + i/20$ and $y_i = \frac{3}{x_{i-1}^3} + \frac{3 y_{i-1}^2}{x_{i-1}} + 2 y_{i-1}^3$.
Let's make a table of values.
\begin{align*}
&i & &x_i & &y_i \\ \hline
&0 & &1 & &-1 \\
&1 & &1.05 & &4 \\
&2 & &1.10 & &\frac{544\,256}{3087} = 176.306{\dots}
\end{align*}
So this Python code will give you a positive number as result.
Searching the Internet for uses of "taylor method update numerical differential equation" and similar phrases turns up no hits, so it is unclear what method you are attempting to implement. (There are several reference to Taylor series, but nothing you write looks like you are using the Taylor series of $-1/x$ centered at $1$, which is
$$ T_{-1/x}(x) = -1 + (x-1) - (x-1)^2 + (x-1)^3 - \cdots \text{,} $$
so those don't seem relevant.) Since I can't guess what variant of an Euler integrator you are intending to use (and there are many, many, MANY, MANY such variants), I cannot make recommendations to steer your code back to your intended calculation.
x0, but usesxin the calculation ofy. – Eric Towers May 06 '20 at 21:43euler(x0, y0, h, x)? None ofx0,y0,h, orxare altered by this call. – Eric Towers May 06 '20 at 21:53