0% found this document useful (0 votes)
31 views17 pages

Python Iterative Statements and Functions

The document describes 12 experiments conducted by student U. Satyanarayana to develop Python programs to perform various tasks like calculating sums, checking palindromes, defining functions, etc. Each experiment lists the aim, program code, inputs/outputs, and conclusion that the program executed correctly. The student created programs for tasks such as summing numbers, checking primes, factorials, and defining functions to calculate math operations, determine even/odd, and count vowels/consonants. All programs were found to be error-free.

Uploaded by

fuming heart
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)
31 views17 pages

Python Iterative Statements and Functions

The document describes 12 experiments conducted by student U. Satyanarayana to develop Python programs to perform various tasks like calculating sums, checking palindromes, defining functions, etc. Each experiment lists the aim, program code, inputs/outputs, and conclusion that the program executed correctly. The student created programs for tasks such as summing numbers, checking primes, factorials, and defining functions to calculate math operations, determine even/odd, and count vowels/consonants. All programs were found to be error-free.

Uploaded by

fuming heart
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/ 17

Experiment:5a Date: 26-12-2022

Name of the student: U.Satyanarayana Roll no:22501A04C3


Aim: Develop a program in python to print sum of n numbers

Program:
Input and output:
Experiment:5b Date: 26-12-2022
Aim: Develop a program in python to print sum of n odd numbers
Program:

Input and output:

Page | 90
Conclusion: Hence the programs are error free and successfully completed
Experiment:5c Date: 26-12-2022
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: Develop a program in python to print range of even numbers
Program: Input and Output:

Experiment:5d Date: 26-12-2022


Aim: Develop a program in python to print multiplication table of given number

Program:
Input and output:

Conclusion: Hence the programs are error free and successfully completed
Experiment:5e Date: 26-12-2022
Name of the student: U.Satyanarayana Roll no:22501A04C3

Page | 91
Aim: Develop a program in python to check if the string is palindrome or not

Program:
Input and output:
Experiment:5f Date: 26-12-2022
Aim: Develop a program in python to print reverse of given string
Program:

Input and output:

Conclusion: Hence the programs are error free and successfully completed
Experiment:5g Date: 26-12-2022

Page | 92
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: Develop a program in python to count no. of alphabets and numbers
Program:

Input and output:

Conclusion: Hence the program is error free and successfully completed

Page | 93
Experiment:5h Date: 26-12-2022
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: Develop a program in python to check whether the number is prime or not
Program:

Input and output:

Experiment:5i Date: 26-12-2022


Aim: Develop a program in python to print factorial of given number
Program: Input and output:

Page | 94
Conclusion: Hence the programs are error free and successfully completed
Experiment:5j Date: 26-12-2022
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: Develop a program in python to check whether the number is Armstrong’s
number or not
Program:

Input and output:

Conclusion: Hence the program is error free and successfully completed


Page | 95
Experiment:5k Date: 26-12-2022
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: Develop a program in python to print numbers other than prime within
the given range
Program:

Input and output :

Page | 96
Conclusion: Hence the program is error free and successfully completed
Experiment:5l Date: 26-12-2022
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: Develop a program in python to print Fibonacci series for the given range
Program:

Page | 97
Input and output:

Conclusion: Hence the program is error free and successfully completed


Experiment:6a Date: 2-1-2023
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: To define a function that accepts 2 values and return it’s sum subtraction
and multiplication
Program:

Input and output:

Page | 98
Conclusion: Hence the program is error free and successfully completed

Experiment:6b Date: 2-1-2023


Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: To define a function that accepts roll numbers and returns whether the
student is present or absent
Program:

Page | 99
Input and output:

Conclusion: Hence the program is error free and successfully completed

Experiment:6c Date: 2-1-2023


Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: To define a function that accepts lower case letters and returns upper case
Program:

Page | 100
Input and output:

Experiment:6d Date: 26-12-2022


Aim: To define a function that accepts radius and returns area of circle
Program:

Input and output:

Conclusion: Hence the programs are error free and successfully completed

Experiment:6e Date: 2-1-2023


Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: To define a function that accepts 3 values and returns maximum of three
numbers
Program:

Page | 101
Input and output:

Conclusion: Hence the program is error free and successfully completed

Experiment:6f. Date: 2-1-2023


Name of the student: U.Satyanarayana Roll no:22501A04C3

Page | 102
Aim: To define a function that accepts a number and returns whether the
number is even or odd
Program:

Input and output:

Conclusion: Hence the program is error free and successfully completed

Page | 103
Experiment:6g Date: 2-1-2023
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: To define a function that accepts a number and returns factorial of the
given number
Program:

Input and output:

Conclusion: Hence the program is error free and successfully completed

Page | 104
Experiment:6h Date: 2-1-2023
Name of the student: U.Satyanarayana Roll no:22501A04C3
Aim: To define a function that counts number of vowels and consonants in the
given word
Program:

Input and output:

Page | 105
Conclusion: Hence the program is error free and successfully completed

Page | 106

You might also like