Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L = []
- name = input("podaj nazwe pliku ")
- while(1 == 1):
- p1 = int(input("Podaj dolny przedzial "))
- p2 = int(input("Podaj gorny przedzial "))
- file1 = open(name, 'r')
- Lines = file1.readlines()
- suma = 0
- for line in Lines:
- if ( int(line) >= p1 and int(line) <= p2 ):
- suma += 1
- print(suma)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement