How to draw Indian Flag Using Turtle Python Program
How to draw Indian Flag Using Turtle Python Program Source Code: import turtle from turtle import* #for output screen screen = turtle.Screen() # Defining a turtle Instance t = turtle.Turtle() speed(-2) # initially penup() t.penup() t.goto(-400,…
Solved Information Technology 402 Term 2 Sample Paper Class 10
Information Technology 402 Term 2 Sample Paper Class 10 CBSE Sample Paper for Session 2021-22 Term-II Max. Time Allowed: 1 Hour (60 min) Max. Marks: 25 General Instructions: 1. Please read the instructions carefully 2. This Question Paper is…
Input a welcome message and display it Python Program
Input a welcome message and display it Python Program welcome_message=input("Enter welcome message : ") print("Hello, ",welcome_message) Output: Enter welcome message : "Welcome to https://cbsepython.in. This is the best place to…
Input a string and determine whether it is a palindrome or not; convert the case of characters in a string
Input a string and determine whether it is a palindrome or not; convert the case of characters in a string # Python Program to check whether string is palindrome or not str=input("Enter a string:") w="" for element in str[::-1]: w =…
Count and display the number of vowels, consonants, uppercase, lowercase characters in string
Count and display the number of vowels, consonants, uppercase, lowercase characters in string # Vowels & Consonants count str = input("Type the string: ") vowel_count=0 consonants_count=0 vowel = set("aeiouAEIOU") for alphabet in str: if…
Compute the greatest common divisor and least common multiple of two integers
Compute the greatest common divisor and least common multiple of two integers # GCD PROGRAM num1 = int(input("Enter 1st number: ")) num2 = int(input("Enter 2nd number: ")) i = 1 while(i <= num1 and i <= num2): if(num1 % i == 0 and num2 % i…
Display the terms of a Fibonacci series Python Program
Display the terms of a Fibonacci series Python Program # Program to display the Fibonacci sequence up to n-th term nterms = int(input("How many terms ? ")) # first two terms n1, n2 = 0, 1 count = 0 # check if the number of terms is valid if nterms…
Input a number and check if the number is a prime or composite number Python Program
Input a number and check if the number is a prime or composite number Python Program num = int(input("Enter any number : ")) if num > 1: for i in range(2, num): if (num % i) == 0: print(num, "is NOT a PRIME number, it is a COMPOSITE number")…
Determine whether a number is a perfect number an armstrong number or a palindrome Python Program
Determine whether a number is a perfect number an armstrong number or a palindrome Python Program # Palindrome (12321 is Palindrome) number=int(input("Enter any number:")) num=number num1= number rev=0 while num>0: digit=num%10 rev=rev*10+digit…
Information Technology 802 Class 12 Sample Paper Term 2
Information Technology 802 Class 12 Sample Paper Term 2 Subject Code: 802 Session: 2021-2022 Term II Time Allowed: 90 min/ Max. Marks: 30 General Instructions: 1. Please read the instructions carefully 2. This Question Paper is divided into 03 sections,…