I am wondering:
First, is it possible to exit a
while True
loop and move onto the next piece of code? This is my
while True
code that I am using:
while True:
b = input("Which row of transition metals would you like to find out the melting and boiling points of? ")
print("")
if b == "1" or b == "1st" or b == "first" or b == "First":
print("First row of transition metals:")
slg(listA, a)
again = input("Continue? ")
if again == "yes":
continue
elif b == "2" or b == "2nd" or b == "second" or b == "Second":
print("Second row of transition metals:")
slg(listB, a)
again = input("Continue? ")
if again == "yes":
continue
Is it possible so that if I had if again == no
, it would move on to the next piece of code, exiting the while True
loop?