The Joy of Computing using Python Week 2: Programming Assignment - Jul-Dec 2022

 NPTEL PROGRAMMING ASSIGNMENTS

The Joy of Computing Using Python

Week 2: Programming Assignment 1

Last Date of Submission 11-Aug-2022, 23:59 IST
Write a program to take an input from the user and print that input.


Input :
Simple Edu


Expected Output:
Simple Edu


 

 



Week 2: Programming Assignment 2

Last Date of Submission 11-Aug-2022, 23:59 IST
Write a program to take an input of two numbers A, and B and print the difference A-B.


Input :
8
4

Expected Output:
4




Input :
50
70

Expected Output:
-20




Input :
10
10

Expected Output:
0


 

 



Week 2: Programming Assignment 3

Last Date of Submission 11-Aug-2022, 23:59 IST
Take a string S and an integer A as an input from a user. Write a program to print string S, A number of times.

Input:
Pea
4

Expected Output:
Pea
Pea
Pea
Pea



Input:
Tea
1

Expected Output:
Tea


 

 


Post a Comment (0)
Previous Post Next Post