Skip to main content
6 of 8
added 41 characters in body
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 97 95 92 90 bytes

for i in range(input()):
 for w in'Yeah','But','No':
	if(len(w)<3)==i%(3-len(w)%2):print w

Try it online!


Python 3, 92 90 bytes

def f(n):[print('Yeah\n'*(i%3<1)+'But\n'*(i%2<1)+'No\n'*(i%3==1),end='')for i in range(n)]

Try it online!

-2 bytes, thanks to ovs

TFeld
  • 19.9k
  • 3
  • 20
  • 63