You are viewing a single comment's thread. Return to all comments →
Came up with virtually the same solution 4 years later:
S = 0 K = 0 for place,char in enumerate(string): if char in 'AEIOU': K += len(string) - place else: S += len(string) - place if S>K: print("Stuart {0}".format(S)) elif K>S: print("Kevin {0}".format(K)) else: print("Draw")
Seems like cookies are disabled on this browser, please enable them to open this website
Java If-Else
You are viewing a single comment's thread. Return to all comments →
Came up with virtually the same solution 4 years later: