Hi,
I'm not sure if this is exactly what you had in mind but what about
something like this:
elements = []
Els = ""
pt = {'H': 1.00794, 'He': 4.002602, 'Li': 6.941, 'Be': 9.012182,
'B':10.811}
while Els != 'No':
Els = raw_input("""Are there any further elements you would like to
include? if so
Alistair King wrote:
> Hei all,
>
> im trying to create a list of variables for further use:
[snip]
> this works to a certain extent but gets stuck on some loop. Im a
> beginner and am not sure where im going wrong.
You are trying to do too much in one function. Split those loops up
into a few li