TCS wings1 DCA python coding
TCS elevate wings1 coding questions
Program to accept the strings which contains all vowels
Given a string, the task is to check if every vowel is present or not. We consider a vowel to be present if it is present in upper case or lower case. i.. 'a', 'e', 'I'.'o', 'u' or 'A', 'E', '1', 'O', 'U'. 23
Examples:
Input: geeksforgeeks
Output: Not Accepted
All vowels are not present
Input: ABeelghiObhkUul
Output: Accepted
All vowels are present.
Program to print even length words in a string
Given a string. The task is to print all words with even length in the given string.
Examples:
Input: s = "This is a python language"
Output:
This
is
python
language
Input: s = "i am muskan"
Output:
am
muskan
Words Frequency in String Shorthand
Count the frequency of all the words in a given string.
Examples
Input: test_str = 'Gfg is best'
Output: {'Gfg: 1, 'is': 1, 'best': 1}
Input: test_str = 'Gfg Gfg Gfg'
Output: {'Gfg': 3}
Many kids up to the age of 7 are confused with the formation of letters and numbers. Ateacher uses different methodologies to make the concepts of mathematics clear to the students. One of the methods the teacher uses to emphasis on the addition and recognition of numbers is that she muddles up the numbers randomly and then asks the students to find the difference between the adjacent digi The task here is to find out if the given number 'N' is a CORRECT or INCORRECT
A number is correct if the maximum difference between the adjacent (right and left) digits is 1. The number 'N' c be a positive or a negative.
A man invests a certain amount on a monthly basis in a bank. He withdraws that money orice in 4 years, which is a leap year, to make a big scale purchase. He starts his next investment exactly 183 days after this purchase initially, he 25 makes a note of his purchase date Given the date(dd) and month(mm) of his purchase, the task here is to Dislike help him find the date and month to start his next investment.. His ne.. investment date is calculated from the next day of his purchase.. Display the date as on 183rd day.
Example
Input: 15 01 Value of dd January --- Value of mm
Output: 16 July -> Date 183 days aft his purchase
Comments