Back to Browse

Happy Number Program in Python | What is Happy Number | Python Course for Beginners

1.0K views
May 2, 2022
23:08

In this video, I have discussed Python Program to Verify Given Number is Happy Number or not #happynumber #python #parnikatutorials A number is said to be happy if it yields 1 when replaced by the sum of squares of its digits repeatedly. Let's understand by an example: Number = 32 32+ 22 = 13 12 + 32 = 10 12 + 02 = 1 In this example, we split 32 to get the sum of squares of its digits which forms another number (13), we replace 32 by 13 to continue this cycle until result 1. We found 32 a happy number. If the above cycle for any number results in 1 then that number will be a Happy number otherwise that will be an unhappy number resulting 4, 16, 37, 58, 89, 145, 42, 20,..... Some Happy numbers are 7, 28, 100, 320, etc. Social media Links: Instagram: https://www.instagram.com/parnikatutorials/ Website: http://parnikatutorials.in/ Email id: [email protected] To get the regular updates: Telegram link: https://t.me/Parnikatutorials Facebook: https://m.facebook.com/profile.php?id=109245950811428&ref=content_filter Linkedin: https://www.linkedin.com/in/parnika-tutorials-a8a9831b2/ Pinterest: https://in.pinterest.com/parnikatutorials0892/ Playlists: Virtual Coffee with Jagadeesh: https://youtube.com/playlist?list=PL4x0v29DZ2pArePUk30o6Twn7sqnqbYCH Digital Logic Design: https://youtube.com/playlist?list=PL4x0v29DZ2pA2ZmL3dclnA-HfHkFAy0GI Computer Organization and Architecture: https://www.youtube.com/watch?v=iJN9q01OWtw&list=PL4x0v29DZ2pBRd8bChJJFtTn6ClJhKzfZ C Programming: https://www.youtube.com/watch?v=h9LtX_R-7uA&list=PL4x0v29DZ2pAIQdtRr-1zaYnqGiD_fU0M Data Structures: https://www.youtube.com/watch?v=m51BGPXdPAQ&list=PL4x0v29DZ2pCtKml6NNoBhYK4K_QnsCA_ Theory of Computation: https://www.youtube.com/watch?v=iJN9q01OWtw&list=PL4x0v29DZ2pDq-5SI9KlYxPDKdYCcmgJm Compiler Design: https://www.youtube.com/watch?v=iJN9q01OWtw&list=PL4x0v29DZ2pBsF-lPUHQ_8uRy-LbDSHIH Operating Systems: https://www.youtube.com/watch?v=vCCmq8hTC8Y&list=PL4x0v29DZ2pD6MzSQMIDSawLSKUZTFfxE Databases: https://www.youtube.com/watch?v=iJN9q01OWtw&list=PL4x0v29DZ2pCYEa9s3r5zWrFYIxGivlEC Computer Networks: https://www.youtube.com/watch?v=iJN9q01OWtw&list=PL4x0v29DZ2pBBOq-QsHtCuA53IlRxIQNm For GATE PYQs and much more explore: https://www.youtube.com/c/ParnikaTutorials/playlists

Download

1 formats

Video Formats

360pmp431.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Happy Number Program in Python | What is Happy Number | Python Course for Beginners | NatokHD