Practical File Class 12 IP 2022-23

Practical File Class 12 IP   Data Handling Program 1: Create a panda’s series from a dictionary of values and a ndarray ”’Python program to create a panda’s series from a dictionary of values and a ndarray”’ import pandas as pd import numpy as np s=pd.Series(np.array([2,4,5,7,9,8,9])) print(s) Output: 0 2 1 4 2 5 3 … Read more

Random Module in Python Class 11-12 Notes

Random Module in Python Class 11-12 Notes Random numbers are widely used in programs which involves games or simulations. Some uses of random numbers are as follows: ♦ To shuffle a deck of playing cards randomly ♦ To play a game of chances where the computer needs to throw some dice, pick a number randomly … Read more

Introduction to Python Module Class 11 Notes Computer Science

Introduction to Python Module Class 11 Computer Science   What is module in Python? Modules are simply files with the “. py” extension containing Python code that can be imported inside another Python Program. A module can contain executable statements as well as function definitions. A module allows you to logically organise your python code.   User-Defined Modules … Read more

Class 11 IP Sample Paper Term 2 Set 3

Class 11 IP Sample Paper Term 2 Set 3 TERM II – 2021-22 Time Duration – 2 hours Maximum Marks : 35 General Instructions:- 1.This question paper contains three parts A,B,C Each part is compulsory . 2.Section A – contains 7 questions each of 2 marks 3. Section B- contains 3 questions each of 3 … Read more

Class 11 IP Sample Paper Term 2 Set 2

Class 11 IP Sample Paper Term 2 Set 2 Term-2 Examination 2021-22 Class: 11    Subject: Informatics Practices Subject Code: 065 Duration : 2 hrs. Max Marks : 35 General Instructions • The question paper is divided into 3 sections – A, B and C • Section A, consists of 7 questions (1-7). Each question … Read more

Class 11 IP Sample Paper Term 2 Set 1

Class 11 IP Sample Paper Term 2 Set 1 Term-2 Examination 2021-22 Class: 11    Subject: Informatics Practices Subject Code: 065 Maximum Marks: 35/ Time: 2 hours   General Instructions ♦ The question paper is divided into 3 sections – A, B and C ♦ Section A, consists of 7 questions (1-7). Each question carries 2 … Read more

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 learn CBSE Computer Science. Here you can find chapterwise notes for class 11-12, Practice Question Papers, Python Projects for Class 11 and … Read more

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 = w+element if (str==w): print(str, ‘is a Palindrome string’) else: print(str,’ is NOT … Read more

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 alphabet in vowel: vowel_count=vowel_count +1 elif alphabet == chr(32): consonants_count=consonants_count else: consonants_count=consonants_count+1 print(“Number of Vowels in “,str,” is :”,vowel_count) print(“Number … Read more

Copywrite © 2020-2025, CBSE Python,
All Rights Reserved