Question: I am reading a text file which contains in each line two floats separated by a comma (x,y), like this :

```
5.2,4.4
2.2,7.2
3.6,6.9

```

I need to read each two floats from each lines, to do some calculation on them, for exemple the first line, i have 5.2 + 4.4, then print it at this end like this : x = 5.2, y = 4.4 and the sum = 9.6

Here what i have tried :

```
with open("data.txt", "r") as f:
    myFile = f.read()
    a = myFile.splitlines()
    (here i cant find how to read the floats to do the sum)
    print ('x= {}, y= {}, sum= {}'.format(x, y, sum))

```

Answer: 
You should use a While loop.
For example, (\* Make sure to add a break)

```py
while True:
  print("foo")

```

What you are trying to accomplish can be done with this code:

```py
joesPassword
while True:
  continueLoop = input("Hey! Want to continue (Y/n)")
  if continueLoop=="n":
    break
  user = input("Welcome! What is your username? ")
  passw = input("Hello, "+user+"! What is your password? ")
  if passw==joesPassword:
    print("Hey, Joe! You got your password correct!")
  else:
    print("Aw man! Your password is wrong!")

```
You'll want to use a `while` loop. Put this before your print code:

```
while True:

```

Then, indent the print code.