NPTEL PROGRAMMING ASSIGNMENTS
The Joy of Computing Using Python
Week 12 Programming Assignment 1
Last Day of Submission: 20-Apr-2023
Last Day of Submission: 20-Apr-2023
Write a program to an integer as an input and reverse that integer.
Input:
A single integer.
Output:
Reverse number of that integer.
Example:
Input:
54321
Output:
12345
Input:
A single integer.
Output:
Reverse number of that integer.
Example:
Input:
54321
Output:
12345
Week 12 Programming Assignment 2
Last Day of Submission: 20-Apr-2023
Given a list of strings, write a program to write sort the list of strings on the basis of last character of each string.
Input:
L = ['ram', 'shyam', 'lakshami']
Output:
['lakshami', 'ram', 'shyam']
Input:
L = ['ram', 'shyam', 'lakshami']
Output:
['lakshami', 'ram', 'shyam']
Week 12 Programming Assignment 3
Last Day of Submission: 20-Apr-2023
Given a student's roll number in the following format rollNumber@institute.edu.in, write a program to find the roll number and institute name of the student.
Input:
roll@institute.edu.in
Output:
roll institute
Input:
roll@institute.edu.in
Output:
roll institute