+ 3

Find the Vowels in Any String and Reverse that String

use any language..

11th Sep 2018, 12:05 PM
Rishabh Mehta
7 Respuestas
+ 9
s, v = input().lower(), "aeiou" print(f"Vowels in {s}:", *(c for c in s if c in v)) print(f"{s} reversed: {s[::-1]}")
11th Sep 2018, 12:21 PM
David Ashton
David Ashton - avatar
+ 2
Please provide a link to your Code Playground code so we can help you troubleshoot the specific issues you are running into. The Code Playground should be relatively easy to find in the website version of SoloLearn, but if you are in the app version, it can be accessed via the curly braces, green circle with plus sign to add a new project, then select the project type. Looking forward.
11th Sep 2018, 12:07 PM
Janning⭐
Janning⭐ - avatar
+ 2
LAZY GHOST You should at least try to show some attempt to solve any problem before asking us to do it all for you. Dont be so LAZY . It's the way to learn.
11th Sep 2018, 12:26 PM
Jan Štěch
Jan Štěch - avatar
11th Sep 2018, 1:47 PM
Rishabh Mehta
+ 1
just a question..that how to find vowels in Any string and how to reverse any string..
11th Sep 2018, 12:12 PM
Rishabh Mehta
+ 1
i got this question during my exam... in python.. i dont have any code
11th Sep 2018, 12:13 PM
Rishabh Mehta
0
LAZY GHOST use string .. for reversing string use l2[::-1] for reversing any string
13th Sep 2018, 7:08 AM
Sri Raman Prasad