You are on page 1of 3

20 PYTHON PROGRAMS

1. Python program to find sum of two numbers:


Input:

Output:

2. Python program to subtract numbers:


Input:

Output:

3. Python program to print table of any number:


Input:
Output:

4. Python program to find factorial of any number:


Input:

Output:

5. Write python program to find sum of n natural numbers:


Input:

Output:

6. Write python program to reverse a string:


Input:

Output:

7. Write python program find even or odd:


Input:

Output:

You might also like