python programming
python programming
OUTPUT:
2. Write a programe to check whether a given number is a perfect number
or not.
OUTPUT:
3. Write a programe to count the number of vowels in a given string.
OUTPUT:
4. Write a programe to print the fibonacci series upto n terms.
OUTPUT:
5. Write a programe to reverse a given
number.
OUTPUT:
6. Write a programe to check whether
given string is palindrome or not.
OUTPUT:
7. Write a programe that inputs a number
and returns the product of digits of that no.
OUTPUT:
8. Write a programe to accept string till the user enters END. Save the data in
text file and display only those sentences which begin with an uppercase
alphabet.
OUTPUT:
9.Write a programe to read a text file and display only those words that are
less than 4 characters.
OUTPUT:
10.Write a program to create a CSV file to store student
data(rollno,name).Obtain data from the user and write 5 records into the file.
OUTPUT:
11.write a program to print the factorial of a given number.
OUTPUT:
12.Write a program to create and read a text file and display only those lines
that have
only 5 words in them.
OUTPUT:
13.Write a program to create and read a text
file and display only those lines that are
beginning with “I”.
OUTPUT:
14.Write a program to create and read a text file and count the no of “to” and
“the” in the file.
OUTPUT:
15.Write a program to read a text file and creates another file that is identical
except that Every sequence of consecutive blank spaces is Replaced by a single
space.
OUTPUT:
NAME-PIYUSH RAJ
SUBJECT-COMPUTER
SCIENCE
CLASS-12
SEC-B
ROLL NO-26