Basic Python Programs

This Basic Python programs set is designed for the Beginner in Python Programming Language.

The syntax of the Python language is very clean and short compared to other programming languages. It’s really fun to work in Python because it allows you to think about the problem rather than focusing on the syntax.

Basic Python Programs

  1. Hello World Program in Python
  2. Add Two Number In Python
  3. Basic Calculator in Python
  4. Check If A Given Number Is Prime Number
  5. Factorial of a number in Python
  6. Positive or Negative number in Python
  7. Check if a Number is Odd or Even in Python
  8. Swap Two Variables in Python
  9. Calculate the Average of Numbers in a Given List In Python
  10. Exchange Values of 2 Numbers Without Using a Temp Variable in Python
  11. Read a Number n and Compute n+nn+nnn in Python
  12. Reverse a Given Number in python
  13. Take in the Marks of 5 Subjects and Display the Grade in python
  14. Print all Numbers in a Range Divisible by a Given Number in python
  15. Read Two Numbers and Print Their Quotient and Remainder in python
  16. Accept Three Digits and Print all Possible Combinations from the Digits in python
  17. Print Odd Numbers Within a Given Range in python
  18. Find the Sum of Digits in a Number in python
  19. Find the Smallest Divisor of an Integer in python
  20. Count the Number of Digits in a Number in python
  21. Check if a Number is a Palindrome in python
  22. Print all Integers that Aren’t Divisible by Either 2 or 3 and Lie between 1 and 50 in python.
  23. Read a Number n And Print the Series “1+2+…..+n= in python
  24. Read a Number n and Print the Natural Numbers Summation Pattern in python
  25. Print an Identity Matrix in python
  26. Print an Inverted Star Pattern in python
  27. Read Print Prime Numbers in a Range using Sieve of Eratosthenes in python

Leave a Reply

Shopping cart