Python Iterative Statements and Functions
Python Iterative Statements and Functions
Program:
Input and output:
Experiment:5b Date: 26-12-2022
Aim: Develop a program in python to print sum of n odd numbers
Program:
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:
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:
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:
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:
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:
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:
Page | 98
Conclusion: Hence the program is error free and successfully completed
Page | 99
Input and output:
Page | 100
Input and output:
Conclusion: Hence the programs are error free and successfully completed
Page | 101
Input and output:
Page | 102
Aim: To define a function that accepts a number and returns whether the
number is even or odd
Program:
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:
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:
Page | 105
Conclusion: Hence the program is error free and successfully completed
Page | 106