Python Week 9 Programming Assignment Solutions 2021

 

Week 9 Programming Assignment 1

Due on 2021-03-25, 23:59 IST
Repetition
Given a list of integers and a value k, you are required to print an integer which appears in the list exactly k times. It is guaranteed that only one integer repeats k times.
Input Format
The first line of the input contains space separated integers.
Second line of the input contains a value n.
Output Format
Print an integer that appears exactly n times.
Example:
Input:
1 2 3 4 3 2 1 2 5 6
3
Output:
2
Explanation
In the given list, 2 appears exactly thrice.


Week 9 Programming Assignment 2

Due on 2021-03-25, 23:59 IST
Panagrams
Given an English sentence, check whether it is a panagram or not. A panagram is a sentence containing all 26 letters in the English alphabet.

Input Format
A single line of the input contains a stirng s.
Output Format
Print Yes or No

Example:
Input:
The quick brown fox jumps over a lazy dog
Output:
Yes
Input:
The world will be taken over by AI
Output:
No


Week 9 Programming Assignment 3

Due on 2021-03-25, 23:59 IST
Remove Vowels
Given a string s, remove all the vowels in s and reprint the string. The order of other characters in the string should be maintained\\

Input Format
A single line of the input contains a stirng s.

Output Format
Print the modified string after removing the vowels

Example:

Input:
abcdEfghi

Output:
bcdfg
Post a Comment (0)
Previous Post Next Post