You're fed up about changing the version of your software manually. Instead, you will create a little script that will make it for you.
# Exercice
Create a function `nextVersion`, that will take a string in parameter, and will return a string containing the next version number.
For example:
# Rules
All numbers, except the first one, must be lower than 10: if there are, you have to set them to 0 and increment the next number in sequence.
You can assume all tests inputs to be valid.
import re
from itertools import zip_longest
def next_version(version):
    s, n = re.subn(r'\.', '', version)
    return ''.join([b + a for  a, b in zip_longest('{:0{}}'.format(int(s) + 1, len(s))[::-1], '.' * n, fillvalue = '')][::-1])
import re
from itertools import zip_longest
def next_version(version):
    s, n = re.subn(r'\.', '', version)
    return ''.join([b + a for  a, b in zip_longest('{:0{}}'.format(int(s) + 1, len(s))[::-1], '.' * n, fillvalue = '')][::-1])