Ade Iswansyah
input2 = None
i = None
def upRange(start, stop, step):
while start <= stop:
yield start
start += abs(step)
def downRange(start, stop, step):
while start >= stop:
yield start
start -= abs(step)
input2 = int(input()) - 1
for i in (input2 <= 1) and upRange(input2, 1, -1) or downRange(input2, 1, -1):
print('Tinggal ' + str(i))
print('Tinggal ' + 'Induknya')
Hendra Putra
qq = None
i = None
def upRange(start, stop, step):
while start <= stop:
yield start
start += abs(step)
def downRange(start, stop, step):
while start >= stop:
yield start
start -= abs(step)
qq = int(input())
for i in (qq <= 1) and upRange(qq, 1, -1) or downRange(qq, 1, -1):
if i > 1:
print('Tinggal ' + str(i - 1))
else:
print('Tinggal Induknya')