Загрузка...

Input a list of numbers and test if a number is equal to the sum of the cubes of its digits Class 1

#computerscience #pythonprctical #computerscienceclass11 #cbse In this video I have explained the practical 15 of CBSE Class 11 Computer Science with python. I have explained the program to Input a list of numbers and test if a number is equal to the sum of the cubes of its digits. Find the smallest and largest such number from the given list of numbers. Source Code: print("Program to Input a list of numbers and test if a number is equal to the sum of the cubes of its digits. \n") print("Find the smallest and largest such number from the given list of numbers.") list=[] list1=[] num=int(input("How many Numbers in the list: ")) for n in range(num): numbers=int(input('Enter Number')) list.append(numbers) print("The Entered list is ",list) for i in range(num): sum=0 temp = list[i] order = len(str(list[i])) while temp (less) 0: digit = temp % 10 k=digit**order sum = sum+k temp //= 10 if list[i] == sum: list1.append(list[i]) print("the largest number is:",max(list1)) print("the smallest number is:",min(list1)) To learn python full course watch: https://www.youtube.com/watch?v=6QVBMuWIBrk&list=PLuND5JsayY-ypqFFFqQyD_H5y5MdIflMc To learn Class XI Computer Science: https://www.youtube.com/watch?v=6QVBMuWIBrk&list=PLuND5JsayY-ypqFFFqQyD_H5y5MdIflMc if you want video on any topic you can comment or contact. fb page: https://www.facebook.com/computerguruhub/ Author on fb: https://www.facebook.com/sknager Telegram Channel: https://t.me/computerguruhub Telegram Group: https://t.me/computerguruhub1 #python #computerscience #cbse #class11computerscience #computerscienceclass11 #pythonclass11 #class11python #pythonprogramming #cbsepythonclass11 #class11 #class11pythoninhindi #pythonclass12 #advantagesofpython #codipymohit #pythonforclass11 #pythontutorial #cbsepythonboardexampapers #class12pythoninhindi #practical #cs #class11pythoncbse #pythonpracticalprogramming #csforclass11 #techcbse #completepythoncourse #ipforclass11 #newsyllabus #pythoninhindi #pythonforclass11cbse #programming #csclass11 #pythonfullcourseinhindi #pythontutorialinhindi #pythonforbeginners #pythontutorialforbeginners #class11pythonchapter1 #completepythontutorialinhindi #classxi #pythonclass11cbse #cbseclass11computerscience #practicalfile #pythonprogram #sumitkumarnager #class11computersciencewithpythonbypreetiarora

Видео Input a list of numbers and test if a number is equal to the sum of the cubes of its digits Class 1 автора Разработка начинающих
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки