Hey Folks, Hello Everyone. We came back with new Assignment of Joy Of Computing Using Python Week 12 Programming Assignment. As we are Providing the answers from since the starting of the assignment. We are providing with 100 % Accuracy. Then Why Waiting, Come with us till Last Let solve the this week assignments also.Â
Read More: Joy Of Computing Week 12 Quiz Assignment AnswersÂ
About Swayam NPTEL
Swayam is an initiative by the Government of India's Ministry of Education to provide online education courses for free to anyone who wants to learn. Swayam offers courses on a wide range of topics, including engineering, humanities, management, and more.
NPTEL, which stands for National Program on Technology Enhanced Learning, is a joint initiative by IITs and IISc to provide free online courses and study material in engineering, science, and technology. NPTEL offers over 2,000 courses in various domains and is one of the most popular online learning platforms in India.
Swayam-NPTEL is a collaboration between Swayam and NPTEL to offer online courses and certifications to learners worldwide. The courses offered by Swayam-NPTEL are designed and delivered by faculty members from the top engineering colleges in India and are recognized by various universities and industries.
Learners can enroll in Swayam-NPTEL courses for free and access course material, video lectures, assignments, and quizzes. They can also earn certificates upon successful completion of the course by paying a nominal fee. The courses offered by Swayam-NPTEL are of high quality and offer a great opportunity for learners to enhance their skills and knowledge in various fields.
The Joy Of Computing Using Python Week 12 Programming Assignment 2023Â
Before Going to the Programming Assignment, Let Briefly Discuss about the Topics Present in these Week 12.Â
- Page RankÂ
- Collatz Conjecture
Page RankÂ
PageRank is a mathematical algorithm developed by Google co-founder Larry Page, which is used to rank web pages in search engine results. The algorithm uses the number and quality of links pointing to a webpage to determine its importance and relevance.
The PageRank algorithm works by analyzing the links that point to a webpage and assigning a score to each link based on the importance of the page it comes from. Pages with higher PageRank scores are considered more important and are ranked higher in search engine results.
The algorithm is based on the assumption that a page with a large number of quality links pointing to it is more likely to be relevant and important than a page with fewer or lower quality links. PageRank also takes into account the context and relevance of the linking pages, so links from relevant and authoritative sources are given more weight than links from unrelated or low-quality sources.
PageRank is just one of many factors used by search engines to determine the ranking of web pages in search results. Other factors include the relevance and quality of the content, the structure and usability of the website, and the user experience.
Collatz ConjectureÂ
The Collatz Conjecture, also known as the 3n+1 conjecture, is a famous unsolved problem in mathematics. The conjecture states that if you start with any positive integer and repeatedly apply the following two operations:
- If the number is even, divide it by 2.
- If the number is odd, multiply it by 3 and add 1.
- then you will always eventually reach the number 1.Â
For example, if you start with the number 6, the sequence of numbers produced by repeatedly applying the two operations is:
6, 3, 10, 5, 16, 8, 4, 2, 1.
The Collatz Conjecture has been verified by computer calculations for many numbers, but no one has been able to prove it for all numbers. The conjecture has been studied by mathematicians for over 80 years and remains one of the most famous and intriguing open problems in mathematics.
The Collatz Conjecture has connections to other areas of mathematics, such as number theory and dynamical systems, and has also been studied in computer science and physics. Despite the efforts of many mathematicians over the years, the conjecture remains unsolved and is considered one of the most important open problems in mathematics.
Programming AssignmentÂ
Q1. Write a program to an integer as an input and reverse that integer.Input:A single integer.
Output:Reverse number of that integer.
Example:Input:54321
Output:12345
Code :Â
n=int(input())
print(int("".join(list(str(n))[::-1])),end="")Â {codeBox}
Q2. Given a list of strings, write a program to write sort the list of strings on the basis of last character of each string.
Input:
L = ['ram', 'shyam', 'lakshami']
Output:
['lakshami', 'ram', 'shyam']
Code:Â
LSG=input().split()
MI=[]
for i in LSG:
 MI.append("".join(list(i)[::-1]))
ans=[]
for i in sorted(MI):
 ans.append("".join(list(i)[::-1]))
print(ans,end="") {codeBox}
Q3. Given a student's roll number in the following format [email protected], write a program to find the roll number and institute name of the student.
Code:Â
rollg=input()
print(rollg.split('@')[0],rollg.split('@')[1].split(".")[0],end="")Â Â {codeBox}
Conclusion:Â
This Week also, I can Assure that you can Score the Maximum Marks.Â
I Request everyone to revisit the website on/before to last date for any re-verification of answers.
Â
If you have any queries, contact us. I am very thankful to answer you.Â