0% found this document useful (0 votes)
10 views10 pages

Assignment - 3

The document outlines an assignment consisting of multiple tasks related to Python programming. It includes writing code for finding the smallest of three numbers, calculating factors, checking for perfect numbers, and implementing recursive functions for Armstrong numbers and palindromes. Additionally, it requires taking user input for names, displaying greetings, and using Turtle graphics to draw shapes.

Uploaded by

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

Assignment - 3

The document outlines an assignment consisting of multiple tasks related to Python programming. It includes writing code for finding the smallest of three numbers, calculating factors, checking for perfect numbers, and implementing recursive functions for Armstrong numbers and palindromes. Additionally, it requires taking user input for names, displaying greetings, and using Turtle graphics to draw shapes.

Uploaded by

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

ASSIGNMENT-3

1. Write a python code to find the smallest of three numbers using elif.

2. Write a python code for the following using for and while loops:
* factors of no
* Perfect number or not
* factorial
3. Write a python code for the following using functions and recursive functions:
* Armstrong number or not
* Palindrome or not ( input: number)
# armstrong number

4. Take 10 names as input from the user and store them in a list. And display out
as follows using both for and while loops: "Hi Name1"
"Hi name2"
.
.
.
"Hi Name10"
# using for loop

# using while loop


5. Write a python program that prints Armstrong numbers from 1 to n numbers.
(nested loops concept).
6. Using Turtle graphics draw the following:
* circle

* 7-pointed star
* circle spiral

You might also like