+ 1
Python syntax
Hey, I have this long equation and programming would make it much easier to work out. Every time I try to run it I get a syntax error and I don’t know why? Do you think you can take a look at it and help me out? https://code.sololearn.com/cJH7DRrAAcyt/?ref=app
2 odpowiedzi
0
#In Python square brackets are only used for lists
#try
x = .5
R = 2*x
r = 4*x
h = x
v = (1/3 * 3.14 * r**2 * h * (1 + (R/r) + (R/r)**2))
print(v)
+ 1
thank you so much!!😀