Ad

Takes input of an integer or string and returns 100.

Code
Diff
  • def returnhundred(word):
        word = str(word)
        while len(word) < 4:
            word += "a"
        word = word[0:4]
        val = bin(len(word))
        return int(val[2:])
    • function returnhundred() {
    • return 10 ** 2;
    • }
    • def returnhundred(word):
    • word = str(word)
    • while len(word) < 4:
    • word += "a"
    • word = word[0:4]
    • val = bin(len(word))
    • return int(val[2:])