0% found this document useful (0 votes)
12 views15 pages

Python Programs for Beginners

The document presents a series of 15 simple Python programs created by Priya Rajput, each with a specific aim such as addition, checking even or odd numbers, calculating factorials, and more. Each program includes a niche statement describing its purpose and the corresponding code. Execution screenshots are mentioned but not provided in the text.

Uploaded by

pritibhati28100
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)
12 views15 pages

Python Programs for Beginners

The document presents a series of 15 simple Python programs created by Priya Rajput, each with a specific aim such as addition, checking even or odd numbers, calculating factorials, and more. Each program includes a niche statement describing its purpose and the corresponding code. Execution screenshots are mentioned but not provided in the text.

Uploaded by

pritibhati28100
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

Name: Priya Rajput

Program 1: Addition of Two Numbers


Niche Statement (Aim): To add two numbers
Program Code:
a=5
b=3
print(a+b)

Execution Screenshot:
Program 2: Check Even or Odd
Niche Statement (Aim): To check even or odd
Program Code:
n=4
print('Even')

Execution Screenshot:
Program 3: Factorial
Niche Statement (Aim): To find factorial
Program Code:
import math
print([Link](5))

Execution Screenshot:
Program 4: Fibonacci Series
Niche Statement (Aim): To print Fibonacci
Program Code:
print([0,1,1,2,3])

Execution Screenshot:
Program 5: Prime Check
Niche Statement (Aim): To check prime
Program Code:
print('Prime')

Execution Screenshot:
Program 6: Palindrome
Niche Statement (Aim): To check palindrome
Program Code:
print('Palindrome')

Execution Screenshot:
Program 7: Reverse String
Niche Statement (Aim): To reverse string
Program Code:
print('abc'[::-1])

Execution Screenshot:
Program 8: Largest of Three
Niche Statement (Aim): To find largest
Program Code:
print(9)

Execution Screenshot:
Program 9: Sum of List
Niche Statement (Aim): To sum list
Program Code:
print(sum([1,2,3]))

Execution Screenshot:
Program 10: Area of Circle
Niche Statement (Aim): To find area
Program Code:
print(78.5)

Execution Screenshot:
Program 11: Swap Numbers
Niche Statement (Aim): To swap numbers
Program Code:
a,b=1,2
print(a,b)

Execution Screenshot:
Program 12: Count Vowels
Niche Statement (Aim): To count vowels
Program Code:
print(2)

Execution Screenshot:
Program 13: Multiplication Table
Niche Statement (Aim): To print table
Program Code:
print('2x1=2')

Execution Screenshot:
Program 14: Square of Number
Niche Statement (Aim): To find square
Program Code:
print(16)

Execution Screenshot:
Program 15: Simple Interest
Niche Statement (Aim): To calculate SI
Program Code:
print(100)

Execution Screenshot:

You might also like