0% found this document useful (0 votes)
19 views

Computer Science Practical File - Google Docs

Uploaded by

sk6472692
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Computer Science Practical File - Google Docs

Uploaded by

sk6472692
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

‭COMPUTER SCIENCE‬

‭PRACTICAL FILE‬

‭ UBMITTED TO :-‬
S
‭MS. VINITA KAUSHIK‬

‭ UBMITTED BY :-‬
S
‭PRACHI SEHRAWAT‬
‭CLASS XI-B‬
‭➢‬ ‭CODES‬

‭# Code 1‬

‭●‬‭WAP to count the number of vowels in the‬


‭string ‘Python Programming’.‬

‭Input:‬

‭Output:‬
‭# Code 2‬

‭●‬‭WAP that reads a string & then prints a‬


‭strings that capitalises every other letter‬
‭in the string.‬

‭Input :‬

‭Output :‬
‭# Code 3‬

‭●‬‭WAP that reads a line then counts how‬


‭many times a substringis appears in the‬
‭line and displace the count.‬

‭Input :‬

‭Output :‬
‭# Code 4‬

‭●‬‭WAP to input a string having some digits‬


‭and return the sum of digits present in‬
‭the str.‬

‭Input :‬

‭Output :‬
‭# Code 5‬

‭●‬ ‭WAP which accepts a no. from the user and‬


‭prints the frequency of the no. in the list‬
‭LST as given under LST= [3,21,5,6,3,8,21,6]‬

‭Input :‬

‭Output :‬
‭# Code 6‬

‭●‬‭WAP to display the square of an element‬


‭if it is an integer and change the case if‬
‭it is a string.‬

‭Input :‬

‭Output :‬
‭# Code 7‬

‭●‬‭WAP to delete all odd no. and negative‬


‭no.s from a numeric list.‬

‭Input :‬

‭Output :‬
‭# Code 8‬

‭●‬‭WAP in python to check whether the‬


‭inserted value of given no. is zero ,‬
‭negative or positive.‬

‭Input :‬

‭Output :‬
‭# Code 9‬

‭●‬‭WAP to create a menu driven for various‬


‭arithmetic operations.‬

‭Input :‬

‭Output :‬
‭# Code 10‬

‭●‬ ‭WAP to accept percentage of a student and display grade.‬

‭Input :‬

‭Output :‬
‭# Code 11‬

‭●‬‭WAP to accept a no. and print the reverse‬


‭of that no.‬

‭Input :‬

‭Output :‬
‭# Code 12‬

‭●‬‭WAP to print Fibonacci series upto a‬


‭certain limit.‬

‭Input :‬

‭Output :‬
‭# Code 13‬

‭●‬ ‭WAP to read a list of elements and modify this list so‬
‭that it does not contain any duplicate elements so‬
‭that all elements occurring multiple time in the list‬
‭should be deleted and only their first occurrence‬
‭should be displayed in the output.‬

‭Input :‬

‭Output :‬
‭# Code 14‬

‭●‬‭WAP to find the sum of all values which‬


‭are ending with 3 from a list‬
‭44,16,96,88,3,21.‬

‭Input :‬

‭Output :‬
‭# Code 15‬

‭●‬‭WAP to enter a no. and check if it is a‬


‭prime no. or not.‬

‭Input :‬

‭Output :‬
‭# Code 16‬

‭●‬‭WAP to accept a decimal no. and display‬


‭its binary no.‬

‭Input :‬

‭Output :‬
‭# Code 17‬

‭●‬‭WAP to remove vowels from a string.‬

‭Input :‬

‭Output :‬
‭# Code 18‬

‭●‬‭WAP that reads a string and displays the‬


‭longest substring of the given string.‬

‭Input :‬

‭Output :‬
‭# Code 19‬

‭●‬‭WAP to display sum of even no. up to no.‬


‭n entered by the user.‬

‭Input :‬

‭Output :‬
‭# Code 20‬

‭●‬‭WAP that reads 2 numbers and an‬


‭arithmetic operator and displays the‬
‭result.‬

‭Input :‬

‭Output :‬

You might also like