NPTEL The Joy of Computing Using Python week 3 Answer 2023

 NPTEL The Joy of Computing Using Python week 3 Answer 2023



NPTEL The Joy of Computing Using Python Assignment 3 Answer 2023

Hello students, you'll get answers for week 3 NPTEL The Joy of Computing Using Python Week 3 Answer 2023 Programming Assignment 1, Week 2: Programming Assignment 2, Week 2: Programming Assignment 3  2023 answer on our blog Sinceweb

NPTEL The Joy of Computing Using Python week 3 Answer 2023

NPTEL The Joy of Computing Using Python week 1   Click here
NPTEL The Joy of Computing Using Python week 2   Click Here
NPTEL The Joy of Computing Using Python week 3   Click Here
NPTEL The Joy of Computing Using Python week 4
NPTEL The Joy of Computing Using Python week 5
NPTEL The Joy of Computing Using Python week 6
NPTEL The Joy of Computing Using Python week 7
NPTEL The Joy of Computing Using Python week 8

Due date: 2023-02-15, 23:59 IST.

NPTEL The Joy of Computing Using Python Assignment 3 Answer 2023


Q1. _____ is the method to insert an item into a specified position in a list.

Answer:- c. Insert

Q2. Which method returns the number of occurrences of an element in a list.

Answer:- c. Count

Q3. The function random.randint(1,100) in python generates.

Answer:- a. A random integer between 1 to 100 with 1 and 100 both inclusive

Q4. The method open(“file1.txt”, r+) opens the file file1.txt in ______.

Answer:- c. Read Write mode
Q5. Consider the list L= [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]. What will be the output of the statement L [3:6]?

Answer:- a. [2, 3, 5]

Q6. What is the output of this code?

Answer:- a. 0
(ads1)
Q7. What is the output of the following code?

Answer:- 1

Q8. What is the output of the following code?

Answer:- a. False True

Q9. Explain what the output will be when the code given below is executed.

Answer:- d. 4.5

Q10. Which among the following statements is True with respect to the code given below?

Answer:- d. count=450

NPTEL The Joy of Computing Using Python week 3 Answer 2023

Week 3: Programming Assignment 1

n = int(input("Enter the number of rows: "))
for i in range(1, n + 1):
    for j in range(i):
        print("*", end=" ")
    print("")


Week 3: Programming Assignment 2

def Fibonacci(n):
    if n<0:
        print("Incorrect input")
    elif n==0:
        return 0
    elif n==1 or n==2:
        return 1
    else:
        return Fibonacci(n-1)+Fibonacci(n-2)

n = int(input(""))
for i in range(n):
    print(Fibonacci(i))


Week 3: Programming Assignment 3

b = int(input(""))
h = int(input(""))

for i in range(h):
    print("*" * b)

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of 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 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.

NOTE: Please note that there will not be an unproctored programming exam for this course this term.

COURSE TYPE : Elective
COURSE LEVEL: Undergraduate/Postgraduate

NPTEL The Joy of Computing Using Python week 3 Answer 2023

COURSE LAYOUT

  • Motivation for Computing
  • Welcome to Programming!!
  • Variables and Expressions : Design your own calculator
  • Loops and Conditionals : Hopscotch once again
  • Lists, Tuples and Conditionals : Lets go on a trip
  • Abstraction Everywhere : Apps in your phone
  • Counting Candies : Crowd to the rescue
  • Birthday Paradox : Find your twin
  • Google Translate : Speak in any Language
  • Currency Converter : Count your foreign trip expenses
  • Monte Hall : 3 doors and a twist
  • Sorting : Arrange the books
  • Searching : Find in seconds
  • Substitution Cipher : What’s the secret !!
  • Sentiment Analysis : Analyse your Facebook data
  • 20 questions game : I can read your mind
  • Permutations : Jumbled Words
  • Spot the similarities : Dobble game
  • Count the words : Hundreds, Thousands or Millions.
  • Rock, Paper and Scissor : Cheating not allowed !!
  • Lie detector : No lies, only TRUTH
  • Calculation of the Area : Don’t measure.
  • Six degrees of separation : Meet your favourites
  • Image Processing : Fun with images
  • Tic tac toe : Let’s play
  • Snakes and Ladders : Down the memory lane.
  • Recursion : Tower of Hanoi
  • Page Rank : How Google Works !!

NPTEL The Joy of Computing Using Python week 3 Answer 2023

Disclaimer:

The answers provided in this blogpost are for reference only and should not be used as a substitute for your own research and understanding of the subject matter. The answers have been researched and compiled to the best of our knowledge, but we cannot guarantee their accuracy or completeness. We strongly advise that you use this information as a starting point for your own research and not as the sole basis for your work. Please use your own discretion and always consult your instructor or professor for guidance.