Write a program to check a number whether it is palindrome or not.

Class 12th CBSE CS Write a program to check a number whether it is palindrome or not. Solution: –  num=int(input(“Enter a number : “)) n=num res=0 while num>0: rem=num%10 res=rem+res*10 num=num//10 if res==n: print(“Number is Palindrome”) else: print(“Number is not Palindrome”) Fun & Easy to follow Works on all devices Your own Pace Super Affordable […]

Write a Program to create a result in Python and Display it accordingly.

Class 12th CBSE CS Write a Program to create a result in Python and Display it accordingly.. Solution: –  rno = int(input(“Enter your roll no :- “)) name = input(“Enter your name :- “) s1 = int(input(“Enter the mark of Subject 1 :- “)) s2 = int(input(“Enter the mark of Subject 2 :- “)) s3 […]

Write a Program to check whether the given string is Palindrome or not.

Class 12th CBSE CS Write a Program to check whether the given string is Palindrome or not. Solution: –  def palindrom(s): # Remove space and convert it into lower string s = s.replace(” “,””).lower() return s == s[::-1] input_string = input(“Enter the String :- “) if palindrom(input_string): print(“The String is Palindrome….”) else: print(“The String is […]

Write a Program to find whether an inputted number is Perfect number or not.

Class 12th CBSE CS WAP to find whether an inputted number is Perfect number or not. Solution: –  def perfectnum(num): divsum = 0 for i in range(1,num): if num % i ==0: divsum = divsum + i #divsum += i if divsum == num: print(“Perfect Number……”) else: print(“Not a Perfect number.”) n = int(input(“Enter the […]

Class 12th Physics Activity 2

Class 12th CBSE Activity -2 Object :- To assemble the components of a given electrical circuit. Fun & Easy to follow Works on all devices Your own Pace Super Affordable Popular Videos https://www.youtube.com/watch?v=9uOETcuFjbE UX for Teams Learn the basics and a bit beyond to improve your backend dev skills. Chris Matthews Designer https://www.youtube.com/watch?v=9uOETcuFjbE SEO & […]

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.