Professional Documents
Culture Documents
Computer Science Project
Computer Science Project
Computer Science Project
Class – XI B
AIM- To print every integer between 1 and n divisible by m. Also report if
number that is divisible by m is even or odd.
INPUT :
OUTPUT :
2
AIM- To compute the result of 1+ 1/1! + 1/2! + 1/3! +....+ 1/n! with n as input.
INPUT :
OUTPUT :
3
AIM- To make an alphabet triangle till the alphabet the user desires.
INPUT :
OUTPUT :
4
AIM- To make a hollow diamond pattern from *s.
INPUT :
OUTPUT :
5
AIM- To check if a string is a palindrome or not. A palindrome is a word,
phrase, or sequence that reads the same backwards as forwards.
INPUT :
OUTPUT :
6
AIM- To isolate letters at odd and even indexes from a string.
INPUT:
OUTPUT :
7
AIM- To capitalize every alternate letter in a string.
INPUT :
OUTPUT :
8
AIM- To find the sum of digits which occur in a string.
INPUT :
OUTPUT :
9
AIM- To divide a list into two lists containing odd and even numbers.
INPUT:
OUTPUT :
10
AIM- To take a list as input and find how many times the desired word
occurred.
INPUT :
OUTPUT :
11
AIM- To find the longest word in a list.
INPUT :
OUTPUT :
12
AIM- To print the list [a,bb,ccc,....] till the alphabet the user desires.
INPUT :
OUTPUT :
13
AIM- To take input, create a tuple and then find the 2nd largest element.
INPUT :
OUTPUT :
14
AIM- To take the position as input and display the term corresponding to this
position in Fibonacci series.
INPUT :
OUTPUT :
15
AIM- To reverse a given tuple.
INPUT :
OUTPUT :
16
AIM- To take a nested tuple as input with inner tuples of the form (a,b) and
print the number of tuples where a and b are both even.
INPUT :
OUTPUT :
17
AIM- To take name and price of product as input and create a dictionary
using it.
INPUT :
OUTPUT :
18
AIM- To take a string as input and print a dictionary containing information
about which letter occurred how many times.
INPUT :
OUTPUT :
19
AIM- To create a dictionary containing the names of students and the
number of medals they won from input names and medals.
INPUT :
OUTPUT :
20
AIM- To take two dictionaries and create a new one with keys from the first
two and values of common keys added.
INPUT :
OUTPUT :
21
22