36+ Python Basic Coding questions on While loop

36+ Python Basic Coding questions on While loop

  1. Python Program to print all natural numbers from 1 to n using while loop.
  2. Python Program to print all even numbers between 1 to 100 using while loop.
  3. Python Program to print all odd number between 1 to 100 using while loop.
  4. Python Program to print sum of all even numbers between 1 to n using while loop.
  5. Python Program to print sum of all odd numbers between 1 to n using while loop.
  6. Python Program to print multiplication of any number using while loop.
  7. Python Program to count the digits of a given number using while loop.
  8. Python Program to print the sum of digits of a given number using while loop.
  9. Python Program to print all natural numbers in reverse order using while loop.
  10. Python Program to check whether a given number is Prime or not using while loop.
  11. Python Program to print all Prime numbers between 1 to n using while loop.
  12. Python Program to find sum of all prime numbers between 1 to n using while loop.
  13. Python Program to check a given number is Armstrong or not using while loop.
  14. Python Program to print all Armstrong numbers between 1 to n using while loop.
  15. Python Program to check a given number is Perfect or not using while loop.
  16. Python Program to check all Perfect numbers between 1 to n using while loop.
  17. Python Program to check a given number is Strong number or not using while loop.
  18. Python Program to print all Strong numbers between 1 to n using while loop.
  19. Program in Java to swap first and last digit of number using while loop.
  20. Python Program to swap values using third variable using while loop.
  21. Python Program to swap values without using third variable using while loop.
  22. Python Program to calculate power of a number without using pow method using while loop.
  23. Python Program to find power of a number without using pow method using while loop.
  24. Python Program to calculate power of a number using pow method using while loop.
  25. Python Program to check number is palindrome or not using while loop.
  26. Python Program to print Fibonacci series of a given number using while loop.
  27. Python Program to print Fibonacci series of a given number using recursion using while loop.
  28. Python Program to print the frequency of digits in given number using while loop.
  29. Program in Java to print ASCII character with values using while loop.
  30. Python Program to print all alphabets from a to z using while loop.
  31. Python Program to print all uppercase alphabets using while loop.
  32. Python Program to print all lowercase alphabets using while loop.
  33. Python Program to print all factors of a number using while loop.
  34. Python Program to print HCF (GCD) of two numbers using while loop.
  35. Python Program to print LCM of two numbers using while loop.
  36. Python Program to find all prime factors of a number using while loop.