python题目求救,急!(大佬们帮帮忙啊)
  • 板块学术版
  • 楼主Shunkai
  • 当前回复0
  • 已保存回复0
  • 发布时间2023/2/7 09:57
  • 上次更新2023/10/24 01:29:46
查看原帖
python题目求救,急!(大佬们帮帮忙啊)
737250
Shunkai楼主2023/2/7 09:57

python题目,大佬们帮帮吧,谢谢

PROBLEM: Given a sentence (up to 1024 characters long), output the following:

  1. The number of different letters. This will be a number from 1 to 26, inclusive.
  2. The number of vowels. Vowels are the letters a, e, i, o, and u.
  3. The number of uppercase letters.
  4. The number of times that the most frequent letter appears. There is no distinction between lowercase and uppercase letters.
  5. The longest word in the sentence. If there is a tie, print the one that appears first when sorting these words alphabetically without regard to lowercase and uppercase. INPUT: One line of data, containing a sentence, up to 1024 characters long. OUTPUT: Print the five statistics specified above in that order. SAMPLE INPUT The quick brown fox, named Roxanne, jumped over Bruno, a lazy dog. SAMPLE OUTPUT
  1. 25
  2. 19
  3. 3
  4. 6
  5. Roxanne
2023/2/7 09:57
加载中...