much = int(input('how much? '))
for i in range(much):
print('Privet')
if i == much-1:
more = str(input('Еще? '))
if more == 'yes':
much = much + much
else:
break
def loop(n):
for i in range(n):
print('Privet')
much = int(input('how much? '))
loop(much)
more = str(input('Еще? '))
if more == 'yes':
loop(much)
range()
, а лучше обойтись переменной, которую уменьшать от much
к 0:much = int(input('how much? '))
i = much
while i > 0:
print('Privet')
i = i - 1
if i == 0:
more = str(input('Еще? '))
if more == 'yes':
i = much