The document outlines a Python assignment consisting of ten programming tasks. These tasks include finding factorials, generating multiplication tables, summing digits, generating Fibonacci series, converting binary to decimal, checking for Armstrong and prime numbers, reversing digits, and generating numbers with delays. Each task requires the development of a specific Python program based on user input.
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 ratings0% found this document useful (0 votes)
0 views1 page
Python Assingment 2
The document outlines a Python assignment consisting of ten programming tasks. These tasks include finding factorials, generating multiplication tables, summing digits, generating Fibonacci series, converting binary to decimal, checking for Armstrong and prime numbers, reversing digits, and generating numbers with delays. Each task requires the development of a specific Python program based on user input.
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
You are on page 1/ 1
Python Assignment – 2
1. Develop a Python program to find factorial of given number.
2. Develop a Python program to print the table of given number in given format:- 2*1=2 2*2=4 ………. 3. Develop a Python program to find sum of digits of given number. E.g. Input – 123 Output – 6 4. Develop a Python program to find sum of ten numbers by taking input from user. 5. Develop a Python program to generate Fibonacci series up to n terms, where value of n is entered by user. E.g. 0 1 1 2 3 5 8 13………………………………………………………………………. 6. Develop a Python program to convert binary number to its decimal equivalent. 7. Develop a Python program to check given number is Armstrong or not. E.g. Input - 153 3 Calculation – 1 +53+33 Output – Armstrong number 8. Develop a Python program to revere the digits of given number. 9. Develop a Python program to check given number is prime or not. 10. Develop a Python program generate numbers in given range with delay of 1-1 seconds.