# Programming Data Structures And Algorithms Using Python Assignment 1 Answers 2022

Are you looking for the Answers to NPTEL Programming Data Structures And Algorithms Using Python Assignment 1? This article will help you with the answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “ NPTEL Programming Data Structures And Algorithms Using Python Assignment 1

## What is Programming Data Structures And Algorithms Using Python?

While hard skills teach us what to do, soft skills tell us how to apply our hard skills in a social environment. The focus of the course is to develop a wide variety of soft skills starting from communication, to working in different environments, developing emotional sensitivity, learning creative and critical decision making, developing awareness of how to work with and negotiate with people and to resolve stress and conflict in ourselves and others.
The uniqueness of the course lies in how a wide range of relevant issues are raised, relevant skills discussed and tips for integration provided in order to make us effective in workplace and social environments.

## CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Below you can find the answers for NPTEL Programming Data Structures And Algorithms Using Python Assignment 1

## Programming Data Structures And Algorithms Using Python Assignment 1 Answers:-

Q1. What is the value of f(3456) for the function below?

``````def f(x):
d=0
while x >= 1:
(x,d) = (x/7,d+1)
return(d)``````

Q2. What is h(60)-h(45), given the definition of h below?

``````def h(n):
s = 0
for i in range(2,n):
if n%i == 0:
s = s+i
return(s)``````

???? Next Week Answers: Assignment 02 ????

Q3. For what value of n would g(375,n) return 4?

```def g(m,n):
res = 0
while m >= n:
(res,m) = (res+1,m/n)
return(res)```

Q4. Consider the following function f:

``````def mys(m):
if m == 1:
return(1)
else:
return(m+mys(m-1))``````

Which of the following is correct?

a. The function always terminates with mys(n) = factorial of n
b. The function always terminates with mys(n) = 1+2+…+n
c. The function terminates for positive n with mys(n) = factorial of n
d. The function terminates for positive n with mys(n) = 1+2+…+n

Answer:- d. The function terminates for positive n with mys(n) = 1+2+…+n

NPTEL Programming Data Structures And Algorithms Using Python Assignment 2 Answers 2022