NPTEL PROGRAMMING ASSIGNMENTS
The Joy of Computing using Python
Week 8: Programming Assignment 1 - Palindrome
Due on 2021-09-23, 23:59 ISTGiven a string as input, determine if it is a palindrome or not. (Ignore the spaces, case and any punctuation or special characters present in the string).
Note: A palindromes is a string which has characters in the same order when read forward or backwards.
Input Format be like
First line of the input contains a string
Output Format be like
Print 'Yes' if the given string is a palindrome, 'No' otherwise it is not palindrome
For Example the
Input is
Malayalam
And Output must be
Yes
if Input is
Python
and Output must be
No
Given a string as input, determine if it is a palindrome or not. (Ignore the spaces, case and any punctuation or special characters present in the string).
Note: A palindromes is a string which has characters in the same order when read forward or backwards.
Input Format be like
First line of the input contains a string
Output Format be like
Print 'Yes' if the given string is a palindrome, 'No' otherwise it is not palindrome
For Example the
Input is
Malayalam
And Output must be
Yes
if Input is
Python
and Output must be
No
Week 8: Programming Assignment 2 - Anagrams
Due on 2021-09-23, 23:59 ISTGiven two strings as input, determine if they are anagrams or not. (Ignore the spaces, case and any punctuation or special characters).
Note: Anagrams are the strings which are made up of the same set of letters. For example : Mary and Army are anagrams.
Input Format be like
First line of the input contains the first string
Second line of the input contains the second string
Output Format be like
Print 'Yes' if the given strings are anagrams, 'No' otherwise.
For Example the
Input is
Tom Marvolo Riddle
I am Lord Voldemort!!!
And Output must be
Yes
if Input is
Royal Challengers Bangalore
Rajasthan Royals
and Output must be
No
Given two strings as input, determine if they are anagrams or not. (Ignore the spaces, case and any punctuation or special characters).
Note: Anagrams are the strings which are made up of the same set of letters. For example : Mary and Army are anagrams.
Input Format be like
First line of the input contains the first string
Second line of the input contains the second string
Output Format be like
Print 'Yes' if the given strings are anagrams, 'No' otherwise.
For Example the
Input is
Tom Marvolo Riddle
I am Lord Voldemort!!!
And Output must be
Yes
if Input is
Royal Challengers Bangalore
Rajasthan Royals
and Output must be
No
Week 8: Programming Assignment 3 - Pangram
Due on 2021-09-23, 23:59 ISTGiven an English sentence, check whether it is a pangram or not. A pangram is a sentence containing all 26 letters in the English alphabet
Input Format be like
A single line of the input contains a string
Output Format:
Print Yes or No
For Example the
Input is
The quick brown fox jumps over a lazy dog
And Output must be
Yes
if Input is
The world will be taken over by AI
and Output must be
No
Given an English sentence, check whether it is a pangram or not. A pangram is a sentence containing all 26 letters in the English alphabet
Input Format be like
A single line of the input contains a string
Output Format:
Print Yes or No
For Example the
Input is
The quick brown fox jumps over a lazy dog
And Output must be
Yes
if Input is
The world will be taken over by AI
and Output must be
No