Category Archives: Python Programming Language

Python Array Module Selection Sort Program

Python Array Module Selection Sort # Write a Python program # to input n numbers in # python array and sort them # in ascending order using selection sort algorithm # Perfect Python Programming Tutorials # Author : www.EasyCodebook.com (c) import array # define a function selection_sort() def selection_sort(arr): n = len(arr) for i in… Read More »

Loading

Python Sentinel Controlled Loop Example Program

Topic: Python Sentinel Controlled Loop Example Program What is a Sentinel Controlled Loop inPython? A Sentinel Controlled Loop is a loop whose execution depends upon a special value. This sentinal controlled loop is terminated if a special value called sentinel value is encountered. The sentinel controlled loops are conditional loops. For example we can use… Read More »

Loading

Python Multiplication Table of Number by Function Program

Python Multiplication Table of Number by Function Program # An example Python program # to define and call a function table # to show multiplication table of a number # Author : www.EasyCodebook.com (c) # Note the first line in function is called # document string, it # define the function with formal parameter num… Read More »

Loading