ValueError Traceback (most recent call last)

Why is this showing error?

Hi @Ishaan_Sarawgi,
I just tried your code and I don’t get any error and a correct value. What’s your error?

it was showing ValueError but i forgot to run it from starting cells so it was showing error.
The issue is resolved now.