I am working on the following problem:
Writing a program that calculates and prints a value according to the formula:
Q=formula
Input variable has values that are input to program in comma-separated sequence. The output should be formula calculated from input in comma-separated sequence.
This is the code I have so far:
import math
D=(input("Enter numbers separated by commas:" ))
D=D.split(',')
While i > 1
for each in set(list(D)):
C=50
H=30
#D=D.split(',')
Q=math.sqrt((2*C*each)/H)
print(Q,sep=',')
But the output is not right. Please help