def total(initial=5, *numbers, extra_number):
count = initial
for number in numbers:
count += number
count += extra_number
print(count)
total(10, 1, 2, 3, extra_number=50)
def total(initial=5, *numbers, extra_number):
count = initial
for number in numbers:
count += number
count += extra_number
print(count)
total(10, 1, 2, 3, extra_number=50)
>>> S = S + 'SPAM!' # Чтобы изменить строку, нужно создать новую
>>> S 'spamSPAM!
>>> S = S[:4] + 'Burger' + S[-1]
>>> S
'spamBurger!