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

python programming

Uploaded by

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

python programming

Uploaded by

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

1.

Write a programe to check whether a given number is an armstrong


number or not.

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy