0% found this document useful (0 votes)
2 views5 pages

Python Assignment 5

The document outlines a series of Python assignment tasks, including functions to check if a number is even or odd, find the maximum of two numbers, and calculate the factorial of a number using recursion. Additional tasks involve counting vowels in a string and printing a personalized greeting. It also includes a challenge to print a sequence of integers in reverse order using recursion without data structures.

Uploaded by

adityadeutkar
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)
2 views5 pages

Python Assignment 5

The document outlines a series of Python assignment tasks, including functions to check if a number is even or odd, find the maximum of two numbers, and calculate the factorial of a number using recursion. Additional tasks involve counting vowels in a string and printing a personalized greeting. It also includes a challenge to print a sequence of integers in reverse order using recursion without data structures.

Uploaded by

adityadeutkar
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

PYTHON ASSIGNMENT

54) 54. Function to check if a number is even or odd

55) Function to find the maximum of two numbers


56) Function with keyword arguments

57) Function with default arguments


58) Function to Find the Factorial of a Number Using Recursion

59) Function to Find the Sum of the Digits of the Number Recursively
60) Create a function named count vowels that accepts a string and returns the number of vowels in
the string.

61) Write a function greet user that takes a user’s name as a parameter and prints a personalized
greeting message.
62) Given a sequence of integers that end with a 00. Print the sequence in reverse order. Don't use
lists or other data structures. Use the force of recursion instead.

You might also like