12 lines
256 B
Python
12 lines
256 B
Python
|
def energy_efficient_spamming(q1, q2):
|
||
|
try:
|
||
|
assert len(q1)>len(q2)
|
||
|
answer = input(q1)
|
||
|
while True:
|
||
|
if answer == 'stopp':
|
||
|
break
|
||
|
answer = input(q2)
|
||
|
except AssertionError:
|
||
|
return
|
||
|
|
||
|
energy_efficient_spamming('jadu', 'nei')
|