Skip to main content
added 52 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 97 95 92 90 83 bytes

lambda n:[w for i in range(n)for w in'Yeah','But','No'if(len(w)<3)==i%(3-len(w)%2)]

Try it online!


Python 3, 92 9083 8581 bytes

lambda n:[w for i in range(n)for w in['Yeah'in'Yeah','But','No']if(len'No'if('N'in w)<3)==i%(3-len(ww<'N')%2)]

Try it online!Try it online!

-2 bytes, thanks to ovs

-4 bytes, thanks to Jo King


Python 3, 92 90 85 83 bytes

lambda n:[w for i in range(n)for w in['Yeah','But','No']if('N'in w)==i%(3-(w<'N'))]

Try it online!

-4 bytes, thanks to ovs

-4 bytes, thanks to Jo King

Python 2, 97 95 92 90 83 bytes

lambda n:[w for i in range(n)for w in'Yeah','But','No'if(len(w)<3)==i%(3-len(w)%2)]

Try it online!


Python 3, 92 90 85 bytes

lambda n:[w for i in range(n)for w in['Yeah','But','No']if(len(w)<3)==i%(3-len(w)%2)]

Try it online!

-2 bytes, thanks to ovs

-4 bytes, thanks to Jo King

Python 2, 97 95 92 90 83 81 bytes

lambda n:[w for i in range(n)for w in'Yeah','But','No'if('N'in w)==i%(3-(w<'N'))]

Try it online!

-2 bytes, thanks to ovs


Python 3, 92 90 85 83 bytes

lambda n:[w for i in range(n)for w in['Yeah','But','No']if('N'in w)==i%(3-(w<'N'))]

Try it online!

-4 bytes, thanks to ovs

-4 bytes, thanks to Jo King

added 60 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 97 95 92 9090 83 bytes

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

Try it online!Try it online!


Python 3, 92 9090 85 bytes

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

Try it online!Try it online!

-2 bytes, thanks to ovs

-4 bytes, thanks to Jo King

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

Python 2, 97 95 92 90 83 bytes

lambda n:[w for i in range(n)for w in'Yeah','But','No'if(len(w)<3)==i%(3-len(w)%2)]

Try it online!


Python 3, 92 90 85 bytes

lambda n:[w for i in range(n)for w in['Yeah','But','No']if(len(w)<3)==i%(3-len(w)%2)]

Try it online!

-2 bytes, thanks to ovs

-4 bytes, thanks to Jo King

added 41 characters in body
Source Link
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, 9292 90 bytes

def f(n): 
 for i in range(n):print[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!Try it online!

-2 bytes, thanks to ovs

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 bytes

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

Try it online!

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

added 6 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63
Loading
added 2 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63
Loading
added 432 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63
Loading
added 40 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63
Loading
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63
Loading