InevitableSwing [none/use name]@hexbear.net to Chapotraphouse@hexbear.netEnglish · 2 days agoThe AI Riemann hypothesis proof is true, independent mathematicians confirmwww.scientificamerican.comexternal-linkmessage-square60linkfedilinkarrow-up152arrow-down10cross-posted to: technology@lemmy.world
arrow-up152arrow-down1external-linkThe AI Riemann hypothesis proof is true, independent mathematicians confirmwww.scientificamerican.comInevitableSwing [none/use name]@hexbear.net to Chapotraphouse@hexbear.netEnglish · 2 days agomessage-square60linkfedilinkcross-posted to: technology@lemmy.world
minus-squareinvalidusernamelol [he/him]@hexbear.netlinkfedilinkEnglisharrow-up2·17 hours agoimport sys from collections import Counter def count(word: str, letter: str) -> int: if letter not in word: return 0 return Counter(word)[letter] if __name__ == '__main__': print(count(*sys.argv[1:3])
import sys from collections import Counter def count(word: str, letter: str) -> int: if letter not in word: return 0 return Counter(word)[letter] if __name__ == '__main__': print(count(*sys.argv[1:3])