break-the-ice-with-python
break-the-ice-with-python copied to clipboard
Question 6
Added a new solution for question 6
Here is my solution to avoid accidental letter key pressings during input.
c, h, lst = 50, 30, [] seq = input("enter a sequence\n").split(',') for item in seq: try: lst.append(int(item)) except: pass for number in lst: q = round((2cnumber/h)**(1/2)) print(q, end=", ")