Would you provide any code to show your effort?
For example I have a following string and want to get wonder numbers:
For example I have a following string and want to get wonder numbers:
>>> wonder_numbers = """meaning of life 42 ... golder ratio is 1.61 ... random num is 123""" >>> [float(row.split()[-1]) for row in wonder_numbers.split('\n')] [42.0, 1.61, 123.0]Then I can do all nice min(), max() and pop() things to get largest, smallest and second largest item.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.