0
I know the basics of coding strings in Python, but I still cannot go forward and complete the whole requirement of the statement. I don’t know how to encode the quantities you require in the question.
Following statement:
Read keyboard strings until an empty string is read. Write on screen :
(A) the number of vowels read;
(B) the number of digits read;
- (C) which string has the longest length read. If there is a tie, write one of them;
- (D) the amount of palindrome strings read.
Definition:
A string is said palíndrome
if and only if, when read from the first to the last character is equal to the string read from the last to the first character.
For example:
“AMA”
, “POP”
, “SOCORRAMMESUBINOONIBUSEMMARROCOS”
, “”
and “Z”
are palyndromes.
len(minha_string)
gives you the size of the string. Still your question is vague. Try to give more concrete examples of what you want, preferably with some code you’ve already written– Isac
M.xy, I saw that you completely updated the question, but you still didn’t post any code. Even with the current answers you couldn’t understand even the least to try? If so, please describe your doubts in the question.
– Woss