def returnhundred(word): word = str(word) 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:])- def returnhundred(word):
- word = str(word)
- return 10**2
test.assert_equals(returnhundred("hi"),100) test.assert_equals(returnhundred("Hello there"),100) test.assert_equals(returnhundred(""),100) test.assert_equals(returnhundred(12098),100) test.assert_equals(returnhundred(0),100)
test.assert_equals(returnhundred("hi"),100)test.assert_equals(returnhundred("Hello there"),100)test.assert_equals(returnhundred(""),100)test.assert_equals(returnhundred(12098),100)- test.assert_equals(returnhundred("hi"),100)
- test.assert_equals(returnhundred("Hello there"),100)
- test.assert_equals(returnhundred(""),100)
- test.assert_equals(returnhundred(12098),100)
- test.assert_equals(returnhundred(0),100)