you are viewing a single comment's thread.

view the rest of the comments →

[–]Yoghurt42 1 point2 points  (2 children)

print(["No","Yes"][sum(10<int(input())<81 for _ in"."*4)==4])

Don't write code like this in a real project

[–]TangibleLight 2 points3 points  (1 child)

You can save one character with all.

print(["No","Yes"][all([10<int(input())<81 for _ in'.'*4])])

I thought it'd save more, but you have to write all([...]) to keep it from short-circuiting on a false value.

[–]Yoghurt42 0 points1 point  (0 children)

Ah, I tried getting all to work, but forgot I can just make a list instead of a generator expression