Input a number and check if the number is a prime or composite number | CBSE Python Practical 7
computerscience #python #computerscienceclass11 #cbse
In this video I have explained the practical 7 of CBSE Class 11 Computer Science with python. I have created a program that can Input a number and check if the number is a prime or composite number.
Source Code:
print("Input a number and check if the number is a prime or composite number.\n")
num = int(input("Enter any number : "))
if num (less than ) 1:
for i in range(2, num):
if (num % i) == 0:
print(num, "is NOT a prime number its a composite number")
break
else:
print(num, "is a PRIME number")
elif num == 0 or 1:
print(num, "is a neither prime NOR composite number")
else:
print(num, "is NOT a prime number it is a COMPOSITE number")
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 particular 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
#computerscience #cbse #computerscienceclass11 #python #class11computerscience #pythonprogramming #cbsepythonclass11 #pythonclass11 #class11 #class11pythoninhindi #pythonclass12 #class11python #pythonforclass11 #pythontutorial #advantagesofpython #csforclass11 #codipymohit #pythonpracticalprogramming #ipforclass11 #practical #class11pythonchapter1 #pythontutorialforbeginners #cbsepythonboardexampapers
#class12pythoninhindi #completepythoncourse #cs #xi #cbseclass11computerscience
#computerscienceclass11cbse #sumitaaroraclass11 #pythoninhindi #class11pythoncbse
#computerscienceforclass11 #pythonforbeginners #pythonclass11cbse #classxi #sumikumarnager #computerguruhub #python #armstrongnumber #programming #armstrongnumberinpython #armstrong #pythontutorial #cprogramming #palindromenumber #armstrongnumberprograminpython #pythonprograms #learnprogramming #programmingtutorials #bca #tutorial #numbers #learn #computer #java #clanguage #mysirg #perfectnumber #palindrome #armstrongnumbers #saurabh #hindi #shukla #c #primenumber #pythonprogramming #sir #in #pythonprogramtocheckarmstrongnumber #javascriptarmstrongnumber #javascriptalltypesofnumbermanipulation #computerrevival #armstrongnumberjavascript #pythonprogramforarmstrongnumberornot #pythoncbse #armstrongnumberprograminc #whileloopinpython #spt999 #spt #impetus #sca #bhopal #pythoninhindi #armstrongnumberinjava #bcaignou #howtostudyforbca #btechstudentshelpline #pythontutorialforbeginners #learnprogramminginhindi #pythonclass12cbse #coding #narcissisticnumber #programmingtutorial #programs #program #beginners #pythontutorials #armstrongnumberpython #skills #prime #problemsolving #pythonfullcourse #bestplantolearnpython #cube #tutorialpythonpython #codinglessons #codingchallenges #techlead #problemsolvingskills #pythonpythonforbeginners #programminglearncodeonline #scrapingdjango #python3 #primenumberliteraturesubject #pythonprogramminglanguage #melbourne #australia #armstrongprograminc #diy #learning #breadboard #sanjindedic #pythonarmstrongnumber #howtofindfactorsofanumberinpython #howtofindprimefactorsinpython #sumofprimenumbersinpython #pythonfactorsofanumber #500 #primefactorizationpython #learnpythonprogramming #django #cprogrammingforgate #clanguagelectures #gatecprogrammingquestions #armstrongnumberswithinrangeinc #armstrongnumberswithinrangeinvbnet #armstrongnumberswithinrangeincarmstrongnumberswithinrangeinc #cprogramminglectures #cprogramforarmstrongnumberwithexplanation #math #armstrongnumberinc #cprogramforarmstrong #cprogramforarmstrongnumber #factors #armstrongnumberswithinrangeinpython #armstrongnumberswithinrangeinjava #checkifnumberisarmstrong
Видео Input a number and check if the number is a prime or composite number | CBSE Python Practical 7 автора Питоновое машинное обучение
Видео Input a number and check if the number is a prime or composite number | CBSE Python Practical 7 автора Питоновое машинное обучение
advantagesofpython cbse cbsepythonclass11 class11 class11computerscience class11python class11pythoninhindi codipymohit computerscience computerscienceclass11 csforclass11 ipforclass11 practical python pythonclass11 pythonclass12 pythonforclass11 pythonpracticalprogramming pythonprogramming pythontutorial
Информация
2 декабря 2023 г. 3:58:39
00:09:10
Похожие видео