使用for循环计算字符串中的e

时间:2017-01-28 23:07:29

标签: python python-3.x for-loop

我的部门已经完成了一项任务,无论我对此进行了多少研究,我似乎都无法想出实际运行的代码。这是大纲:

"""Count the e's in a string, using for loop.

Test data (you should add more):
input: 'Every e please.'  output: 5

Params: s (string)
Returns: (int) #e in s, either lowercase or uppercase
"""
enter code here

有人可以帮我解决这个问题吗?只有for循环可用于提出代码。

0 个答案:

没有答案
相关问题