- 1
I want a python program which takes your name as the input and concatenates the string in a specific way.
Make three functions for that: 1. def stringer(st) : this module removes all the spaces and creates a new string where there it first letter of the name followed by first letter of the surname then 2nd letter of the name and then 2nd letter of the surname and so, 2. def vowelremover(st) : this module replaces all vowels in the string and replaces them with randomly generated special characters
6 Answers
+ 6
Partha Sarathi Dey ,
you have finished "python core" at about 50 % and you have finished "python for beginner's" with 100%. so i am sure you are able to solve this task. give it a serious try.
since you have finished the python tutorial about 1 year ago, this may cause problems in remembering if you have not practiced in the meantime. so the only way is to repeat some parts of the tutorial.
if you get stuck in some details, you are welcome to ask again.
happy coding and good success!
+ 6
Partha Sarathi Dey ,
there are some open questions:
lets assume thd following input:
Tom Brown
should give:
TBormo ??? how to handle if names does not have the same length ???
please just complete the desired output with given input so that we can see it as a sample
you are taking about to make 3 functions, but the description shows only 2 ???
+ 4
Where is attempts?
+ 3
Good, I'll do it for you. How much you are ready to pay?
+ 1
Partha Sarathi Dey
I can't give solution but I can give hint.
1 - take your name with surname as input
2 - split your name with space and store in two variables like first_name and sur_name
3 - Use for loop and concat first letter of first_name followed by first letter of sur_name then 2nd letter of first_name and 2nd letter of sur_name and so on.
4 - replace all vowel of string generated by 3rd point with random generated special characters
0
i couldnt do this program i need help pls help me with it A͢J - SÍoÍlÍoÍHÍeÍlÍpÍeÍrÍ