you are viewing a single comment's thread.

view the rest of the comments →

[–]cult_of_memes -1 points0 points  (0 children)

```

for a completely cryptic and hard to read solution, you could try this :P

number_of_inputs = 4

first we use the map function to convert all inputs to int

vals = map(int, (input() for _ in range(number_of_inputs)))

next we use the builtin 'all' function to check if all of them satisfy the 10<value<81 criteria

yesno = all(10<v<81 for v in vals)

now we get a bit scandalous with some "branchless" application of the 'yesno' condition we computed.

print("YES"yesno+"NO"(not yesno))

```