break-the-ice-with-python icon indicating copy to clipboard operation
break-the-ice-with-python copied to clipboard

Question 6

Open prasanth-jaganathan opened this issue 4 years ago • 1 comments

Added a new solution for question 6

prasanth-jaganathan avatar Sep 25 '21 15:09 prasanth-jaganathan

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=", ")

Triumphator avatar Oct 07 '21 09:10 Triumphator