Version 1:

a=5
b=-1

w = (2*a - b)**0.5

print(w)

Version 2:

from math import sqrt 

a=5
b=-1

w = sqrt(2*a - b)

print(w)