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…
CS-IT-IP-AI and Data Science Notes, QNA for Class 9 to 12
CBSE Computer Science with Python class 12
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…
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:…
Python MySQL Connectivity Notes Class 12 Interface Python with MySQL database Contents: ♦ Connecting SQL with Python ♦ Creating database connectivity application ♦ Performing insert, delete, update, queries ♦ Display…
Random Function in Python MCQ Class 11-12 1. What does the following statement do? import random a) Imports the random module b) Imports a random module from a list of…
Informatics Practices Sample Paper Term 2 Class 12 Sample Question Paper INFORMATICS PRACTICES (Code : 065) Maximum Marks: 35 Time: 2 hours General Instructions The question paper is divided…
Create a CSV file by entering user-id and password, read and search the password for given userid # Python Program import csv with open("user_info.csv", "w") as obj: fileobj = csv.writer(obj)…
Input a list of numbers and swap elements at the even location with the elements at the odd location Python Program # Program to input number list and swapping odd…
Input three numbers and display the largest/smallest number Python Program # Python Program to input 3 numbers and display the largest number #input first,Second and third number num1=int(input("Enter First Number"))…
Input two numbers and display the larger/smaller number Python Program # Python Program to input 2 numbers and display larger number #input first number num1=int(input("Enter First Number")) #input Second number…
Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have scored marks above 75. Program no_of_std…