uebung1 #1

Merged
webersamuel merged 3 commits from uebung1 into master 2026-02-25 23:27:02 +01:00
Showing only changes of commit c5dd88145e - Show all commits

View File

@ -0,0 +1,7 @@
def ips_between(start, end):
start_a = start.split(".")
end_a = end.split(".")
difference = 0
for index, i in enumerate(start_a):
difference += (int(end_a[index]) - int(i)) * 256 ** (3 - index)
return difference