Python Tutorials - Happy Numbers

preview_player
Показать описание
In this Python Programming video series we will discuss about how to identify happy numbers in detail.

Happy numbers are the numbers which eventually leads to 1 when the number is replaced by sum of square of its digit.

#PythonPrograms #HappyNumbers

For more free tutorials on computer programming
Рекомендации по теме
Комментарии
Автор

n=7
dup=n
n2=0
k=0
while n2!=1:
if n2==4:
print(dup, "is unhappy number")
break
n2 = 0
for i in str(n):
k=int(i)**2
n2=n2+k
n=n2
else:
print(dup, "is happy number :), result=", 1)

maheswarreddyvaddireddy
Автор

hi Sis, these are really worth videos thanks a lot for sharing the content .
Guys who are reading the comment and really want to learn Data Strucures in Python, here is the Amulya Sis who always explained in a laymen terminology so that everyone understands.

And one small request guys, since this sister is doing this much for us, pls donot skip the adds, just watch fully, pls donot skip, so that our sister will get the income. This is the least way we can help her.

Thanks SIS

meghanathreddy
Автор

Can you start tutorials on Data science?

maheswarreddyvaddireddy
Автор

Dear sir or madam I have learnt a lot from your programs it's amazing madam

balakrishnavaidyanathan
Автор

I like your voice and obviously your teaching style.

sainaik
Автор

Dr. Who sent me on this math lesson lmao

seagullspit
Автор

thank you its helpful thank you so much amazing voice neat clear explanation good

dilkushdileep
Автор

programmin is fun when you are the tutor. keep making video for us.
thank you !

shujanahamed
Автор

what are the time and space complexity for your code ? thank hyou

chukwuemekanwokedi
Автор

I really like the way you Explaining all the small points. Thank you so much !!

nomadicnoddy