Skip to main content
Clarified language version
Source Link
DLosc
  • 39.2k
  • 5
  • 83
  • 141

Python 2 REPL, 24 chars

Shortest python atm, borrowing bin() from @Fraxtil :)

bin(input()).count('1')>1

Python, 24 chars

Shortest python atm, borrowing bin() from @Fraxtil :)

bin(input()).count('1')>1

Python 2 REPL, 24 chars

Shortest python atm, borrowing bin() from @Fraxtil :)

bin(input()).count('1')>1
deleted 4 characters in body
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Python, 2924 chars

Shortest python atm, borrowing bin() from @Fraxtil :)

not bin(input()).count('1')<2>1

Python, 29 chars

Shortest python atm, borrowing bin() from @Fraxtil :)

not bin(input()).count('1')<2

Python, 24 chars

Shortest python atm, borrowing bin() from @Fraxtil :)

bin(input()).count('1')>1
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Python, 29 chars

Shortest python atm, borrowing bin() from @Fraxtil :)

not bin(input()).count('1')<2