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 generate random number between 1 to 6 and check whether a user guess a number or not.
Class 12th CBSE CS Write a Program to generate random number between 1 to 6 and check whether a user guess a number or not. Solution: –Â import random while True: n = random.randint(1,6) guess = int(input(“Enter a number between 1 to 6 :- “)) if n == guess: print(“You won the game …..”) break […]
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 6
Class 12th Physics Activity 5
Class 12th Physics Activity 4
Class 12th Physics Activity 3
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 & […]