Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def zad1():
- species = set() #not repeat
- maxNumber = 0
- # add unique species
- for i in range(0, len(genotypes)):
- species.add(len(genotypes[i]))
- for spec in species:
- counter = 0
- for genot in genotypes:
- if len(genot) == spec:
- counter += 1
- if counter > maxNumber:
- maxNumber = counter
- print("Liczba gatunkow: " + str(len(species)))
- print("Najwiekszy gatunek: " + str(maxNumber))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement