+ 1

Python Data structures

Hi community, I think there is a bug in this quiz. The test says the following: You are making a program to analyze text. Take the text as the first input and a letter as the second input, and output the frequency of that letter in the text as a whole percentage. Sample Input: hello l Sample Output: 40 The inputs that came in on the first test were : a) “This is some text”, b) “s” The first test answer is: 17 This is incorrect, it’s 21. Not sure who to tell here to fix it.

21st Mar 2023, 11:18 AM
Marcus Arkan
3 Respuestas
+ 3
The blanks spaces count to the length of the text.
21st Mar 2023, 11:27 AM
Lisa
Lisa - avatar
+ 3
Ah ok. I thought it wanted to compare against the lenght of the text only. Thank you!
21st Mar 2023, 11:31 AM
Marcus Arkan
0
Hello
22nd Mar 2023, 12:14 PM
Kamoliddin Shodmanov
Kamoliddin Shodmanov - avatar