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: Python Array Module Selection Sort Program »

Loading

Python Bubble Sort using Array Module

Python Bubble Sort using Array Module # Write a Python program # to input n numbers in # Python array and sort them using # bubble sort # Perfect Python Programming Tutorials # Author : www.EasyCodebook.com (c) import array def bubbleSort(arr): n = len(arr) for i in range(n): for j in range(0, n-i-1): if arr[j]… Read More: Python Bubble Sort using Array Module »

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: Python Sentinel Controlled Loop Example Program »

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: Python Multiplication Table of Number by Function Program »

Loading

Python Print Grade From Score if elif else

Python Print Grade From Score if elif else # Write a Python program # using if-elif-else to print # the grade based on # score input by the user # Perfect Python Programming Tutorials # Author : www.EasyCodebook.com (c) # Actual Program starts here # Python Program – Print Your Grade using if-elif-else score =… Read More: Python Print Grade From Score if elif else »

Loading

Python Find Grade Using Nested If Else Program

Python Find Grade Using Nested If Else Program   # Write a Python program # using nested if else statement # to print the grade based on marks # input by the user # Perfect Python Programming Tutorials # Author : www.EasyCodebook.com (c) # Actual Program starts here # Python Program – Print Your Grade… Read More: Python Find Grade Using Nested If Else Program »

Loading

Python Array Find Average Temperature of Week Program

Python Array Find Average Temperature of Week Program # Write a Python program # to input daily temperatures for # a week and find average temperatur # of week # Perfect Python Programming Tutorials # Author : www.EasyCodebook.com (c) # Actual Program starts here import array a = array.array('d', []) n = 7 print('Enter 7… Read More: Python Array Find Average Temperature of Week Program »

Loading

Python Array Find Minimum Number Program

Python Array Find Minimum Number Program   # Write a Python program # to input n numbers in # python array and find minimum number # Perfect Python Programming Tutorials # Author : www.EasyCodebook.com (c) # Actual Program starts here import array a = array.array(‘i’, []) n = int(input(‘Enter size of Array=’)) for i in… Read More: Python Array Find Minimum Number Program »

Loading

Python Array Find Maximum Number Program

Python Array Find Maximum Number Program # Write a Python program # to input n numbers in # python array and find maximum number # Perfect Python Programming Tutorials # Author : www.EasyCodebook.com (c) # Actual Program starts here import array a = array.array(‘i’, []) n = int(input(‘Enter size of Array=’)) for i in range(n):… Read More: Python Array Find Maximum Number Program »

Loading