adplus-dvertising
NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022

NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022

NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022

NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate as a Reference Purpose, It is Mandetory to Submit Your Weekly Assignment By Your Own Understand Level.

 

Are you looking for the Assignment Answers to NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022? If Yes You are in Our Great Place to Getting Your Solution, This Post Should be help you with the Assignment answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “NPTEL The Joy Of Computing Using Python Assignment week 5 solutions 2022″

The Joy Of Computing Using Python?

A fun crammed windstorm tour of thirty hrs, covering everything you would like to understand to fall infatuated with the foremost asked for ability of the twenty first century. The course brings programming to your table with anecdotes, analogies and illustrious examples. Turning abstractions to insights and engineering to art, the course focuses primarily to inspire the learner’s mind to assume logically and gain an answer programmatically. As a part of the course, you’ll be learning a way to observe and culture the art of programming with Python as a language. At the tip of the course, we tend to introduce a number of this advances in computing to inspire the eager learner to pursue additional directions.
The Joy Of Computing mistreatment Python could be a fun-filled windstorm tour of thirty hrs, covering everything you would like to understand to fall infatuated with the foremost sought-after ability of the twenty first century. This course includes samples of analytics during a large choice of industries, and that we hope that students can learn the way you’ll use analytics in their careers and life. one in every of the foremost vital aspects of this course is that you just, the coed, are becoming active expertise making analytics models; we tend to, the course team, urge you to participate within the discussion forums and to use all the tools offered to you whereas you’re within the course!

 

CRITERIA TO GET A CERTIFICATE

This course can have Associate in Nursing unproctored programming communication conjointly excluding the Proctored communication, please check announcement section for date and time. The programming communication can have a weightage of twenty fifth towards the ultimate score.

Final score = Assignment score + Unproctored programming exam score + Proctored Exam score
  • Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
  • ( All assignments in a particular week will be counted towards final scoring – quizzes and programming assignments). 
  • Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam – out of 100
  • Proctored Exam score =50% of the proctored certification exam score out of 100
YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF ASSIGNMENT SCORE >=10/25 AND
UNPROCTORED PROGRAMMING EXAM SCORE >=10/25 AND PROCTORED EXAM SCORE >= 20/50. 
If any one of the 3 criteria is not met, you will not be eligible for the certificate even if the Final score >= 40/100. 

CHECK HERE OTHERS NPTEL ASSIGNMENTS ANSWERS 

BELOW YOU CAN GET YOUR NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022? :

 

NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022

Q1. What is the syntax to create a dictionary?

D = [] D = {}
D = ()
D = dictionary()

Answer:-D = {}

 

Q2. What is the correct statement about dictionaries?

There can be multiple same keys.
Every value must be unique.
Every key must be unique.
We can’t get every key from the dictionary.
Answer:- Every key must be unique.

Q3. What is the correct syntax to get all the keys only from a dictionary d?

d.key()
d.item()
d.value()
d.keys()
Answer:- d.keys()

Q4. What will be the output of the following code?

20 ‘30’
‘20’ ‘30’
20 30
a b
Answer:- 20 ‘30’

Q5. What will be the output of the following code?

‘a’ ‘b’ ‘c’
20 30 50
(‘a’, 20), (‘b’, 30), (‘c’, 50)
(‘a’, ‘b’, ‘c’) (20, 30, 50)
Answer:- (‘a’, 20), (‘b’, 30), (‘c’, 50)

Q6. What will be the output of the following code?

Creates a dictionary with keys in range 0-19 and values 0
Creates a dictionary with keys in range a-t and values 0.
Creates a dictionary with keys in range a-z and values in range 0-19.
Creates a dictionary with keys in range a-t and values in range 0-19.

Answer:- Creates a dictionary with keys in range a-t and values 0.

Q7. What does the following code mimics?

Distribute 1000 marbles evenly in every bag.
Distribute 500 marbles randomly in every bag.
Distribute 1000 marbles randomly in every bag.
Throws an error.
Answer:- Distribute 1000 marbles randomly in every bag.

Q8. What is the correct code to choose rock, paper, or scissors correctly?

1) 2) 3) 4)

Answer:- 4)

Q9. Binary search is applicable in?

Unsorted list.
Only in the list which is sorted in ascending order.
Only in the list which is sorted in descending order.
Any sorted list.
Answer:- Any sorted list.

Q10. What will be the output of the following code?

The first element of the initial list.
The largest element of the list.
The smallest element of the list.
Throws an error.

Answer :- The largest element of the list.

Programming Assigment week 5

Q1. You are given a string S. Write a function count_letters which will return a dictionary containing letters (including special character) in string S as keys and their count in string S as values.

Code:-

def count_letters(string):
d={}
for s in string:
if s not in d:
d[s]=string.count(s)
return(d)

Q2. You are given a list L. Write a function uniqueE which will return a list of unique elements is the list L in sorted order. (Unique element means it should appear in list L only once.)

Code:-

def uniqueE(L):
ans=[] for a in L:
if L.count(a)==1:
ans.append(a)
return(sorted(ans))

Q3. You are given a list L. Write a program to print first prime number encountered in the list L.(Treat numbers below and equal to 1 as non prime)

Code:-

prime_numbers=[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47,
53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109,
113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197,
199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293] for a in L:
if a in prime_numbers:
print(a,end=””)
break

 

Yhaa You have done it but next? if YOU Want to your Others NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022 Then Follow US HERE and Join Telegram.

Related Posts

2 thoughts on “NPTEL The Joy Of Computing Using Python Assignment 5 Answers 2022

  1. Wonderful blog! I found it wһile browsing on Yahoo Neѡs.
    Do you have any suggestions on how to get listed in Yahoߋ News?
    I’ve Ƅеen trying for a while Ƅut I never seem to get there!
    Cheers

Leave a Reply

Your email address will not be published.