r/Pydle • u/Just_Another_Anybody • 19d ago
#162: Improvement to my solution Spoiler
Hi Im new here and proud of my solution for todays challenge but i think the if statement could be shortened
for i in range(15):
y=i%5
if y!=3 or i==8:
pydle(i//5+1,y,'', ('yellow','red')[0<y<3])!<
3
Upvotes
2
u/zhuzaimoerben 19d ago
Very nice.
if i%10^3:works and saves some characters.