Paste Search Dynamic
Recent pastes
chr range
  1. a = input("Masukkan text : ").upper()
  2.  
  3. jumlah = [0] * 26
  4.  
  5.  
  6. for i in a:
  7.     include = ord(i) - 65
  8.     if include < 0:
  9.         continue
  10.     if include > 26:
  11.         include = include -32
  12.     jumlah[include]+= 1
  13.  
  14. for i in range (26):
  15.     print(chr(i+65), jumlah[i])
Parsed in 0.003 seconds