Skip to main content
Commonmark migration
Source Link

#Pyth, 5 bytes

Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

#Pyth, 3 bytes

Pyth, 3 bytes

No cute face this time ._.

.&E

Try it here.

#Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

#Pyth, 3 bytes

No cute face this time ._.

.&E

Try it here.

Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

Pyth, 3 bytes

No cute face this time ._.

.&E

Try it here.

added 32 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

#Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

#Pyth, 3 bytes

No cute face this time ._.

.&E

Try it here.

#Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

#Pyth, 3 bytes

.&E

Try it here.

#Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

#Pyth, 3 bytes

No cute face this time ._.

.&E

Try it here.

added 148 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

#Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

#Pyth, 3 bytes

.&E

Try it here.

#Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

#Pyth, 5 bytes

._.&E

Try it here.

Notice the cute face ._.


#How?

._.&EQ  -  Q means input and is implicit.

  .&    - Bitwise AND between:
    E     - The second input and
     Q    - The first input.
._      - Sign. 0 if it equals 0, 1 otherwise.

If inconsistent values are allowed:

#Pyth, 3 bytes

.&E

Try it here.

added explanation
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading