Trolling in another base

Level 2

What is 1 and 1

This is an entry to the troll king contest

2 3 1 11

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Brock Brown
Mar 31, 2015

This problem uses 1 as a boolean for true . The operator "and" outputs 1 if and only if both operands are equal to 1.

Python 2.7:

1
2
3
4
print 1 and 1
# outputs 1
# (it seems like it should
# output True, but try it!)

truth tables truth tables

perfect solution for an imperfect problem..

Vighnesh Raut - 6 years, 2 months ago

Here, I assumed that by "and", the question meant the Boolean operator "Logical AND". In Boolean algebra, 1 AND 1 = 1.

Thats what I wanted .... People must think logically (as it is a troll problem) and use logical operators .. XD

Vighnesh Raut - 6 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...