NPTEL Joy Of Computing Using Python Week 4 Assignment Answer

ABOUT THE COURSE :

A fun filled whirlwind tour of 30 hrs, covering everything you need to know to fall in love with the most sought after skill of the 21st century. The course brings programming to your desk 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 think logically and arrive at a solution programmatically. As part of the course, you will be learning how to practice and culture the art of programming with Python as a language. At the end of the course, we introduce some of the current advances in computing to motivate the enthusiastic learner to pursue further directions.

INTENDED AUDIENCE :  Any interested audience

PREREQUISITES :  10th standard/high school

INDUSTRY SUPPORT :  Every software company is aware of the potential of a first course in computer science. Especially of a first course in computing, done right.

NPTEL Joy Of Computing Using Python Week 4 Assignment Answer

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 Joy Of Computing Using Python Week 4 Assignment Answer

Week 4 : Assignment 4

Due date: 2025-02-19, 23:59 IST.
Assignment not submitted
1 point

Which of the following options provides the general formula for the magic constant of a magic square of size nn, where all elements are distinct numbers from 1 to n2n2?

1 point
What would the magic constant be for a magic square of size 7, given that all elements in the square are distinct numbers from 1 to 49?
 
 
 
 
1 point
Does transposing any magic square change the sum across some rows/columns/diagonal?
 
 
1 point
Which of the following are valid magic squares ?

What is the minimum number of people required to ensure that at least three of them share the same 30-minute birth interval? The intervals start from 12:00 AM and each interval lasts for half an hour.
49
1 point

Calculate the magic constant for 5×5 square, where all elements are distinct numbers from 1 to 25, is it same as the magic constant for Ramanujan’s magic square ?

If yes, enter 0, else enter the absolute difference between the two.
Hint: Search the about Ramanujan’s magic square.

74
1 point
1 point

What task does mystery1() perform?

 
 
 
 
1 point
For what n1, n2 will the variable flag inside mystery2() be equal to True?
 
 
 
 
1 point
If all possible pairs of prime numbers between 0 and 10, are given to n1 and n2, for how many pairs would 2 print ”Completed” ?
 
 
 
 
1 point
If numbers of pairs of primes which result in mystery2 to print ”Completed” are lesser than 1, Can we edit the code in mystery2() so that ”Completed” is always printed for any pair of primes ?
 
 
 
 

Related Posts