GE8161 - PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY

B.E / B.TECH (ALL BRANCH) FIRST YEAR/ I SEMESTER

ANNA UNIVERSITY R2017

SIMPLE PYTHON PRACTICE PROGRAMS:

Use Looping for(…) \ while() \do…while() [OR] Conditional statement if()..else.., / if().. else if()… else to do this following program.

  1. Write a Python program to find the sum of ‘n’ numbers using function?
  2. Write a Python program to generate the Fibonacci Series?
  3. Write a Python program to calculate the Area & Circumference of Circle?
  4. Write a Python program to convert Fahrenheit to Centigrade?
  5. Write a Python program to swap two values without swap keyword?
  6. Write a Python program to calculate Simple Interest?
  7. Write a Python program to find a given number is odd or even?
  8. Write a Python program to find the sum of odd and even from a set of numbers?
  9. Write a Python program to find biggest of 3 numbers form a set of n numbers?
  10. Write a Python program to check the given integer is prime or not?
  11. Write a Python program to check and display 10 leap years?
  12. Write a Python program to check the given integer is Armstrong number or not?
  13. Write a Python program to generate prime numbers between 1 and 50?
  14. Write a Python program to find the sum of cube of individual digits of a number?
  15. Write a Python program to reverse the given number and check it is palindrome or not?
  16. Write a Python program to find the roots of a quadratic equation

LIST PROGRAM

  1. Write a Python program to find the second highest number from a set of numbers using LIST
  2. Write a Python program to Find the min and Maximum from the LIST
  3. Write a python for matrix Multiplication Program

SORTING / SEARCHING PROGRAM

  1. Write a Python program for the following using LIST, FOR.. LOOP/WHILE LOOP and IF-ELSE/IF-ELSIF
    • Sorting [Bubble, Merge, Selection and Insertion]
    • Searching [Binary and Linear]

STRING PROGRAM

  1. Write a Python program to compare two strings and Check the given string is palindrome or not
  2. Write a Python program to find the length of the string and reverse the string

SERIES PROGRAM

  1. Write a Python program for the following serious X/1 +X/2 +... until x = 10

/*-/*-/*-/*-/*-/*-/*-/*-/*/-*/-/*-/*-/*-/*-/

Practice does not make perfect. Only perfect practice makes perfect.

by

Vince Lombardi