Given a test string, please switch this string to lower and calculate frequency of each character

截圖 2021-05-06 上午3.43.53.jpg

Write a Python function that accepts a string and calculate the number of upper case letters and lower case letters.

截圖 2021-05-08 下午4.11.47.jpg

Write a function that accepts a sentence and calculate the number of letters and digits.

截圖 2021-05-08 下午4.26.35.jpg

創作者介紹
創作者 Terror-P的部落格 的頭像
Terror-P

Terror-P的部落格

Terror-P 發表在 痞客邦 留言(0) 人氣( 31 )