Category Archives: Python Programming Language

Python File Copy Program using shutil.filecopy

Topic: Python File Copy Program using shutil.filecopy You can easily copy a source file to a destination file. For this purpose, perform the following steps: import shutil module input source file name input destination file name call shutil.copyfile(sourcefile,destinationfile) You can see the image number 1 given below which shows the situation before execution of  Python… Read More »

Find Factorial by Recursive Function Python GUI Program

Topic: Find Factorial by Recursive Function Python GUI Program   # Python GUI program Find Factorial # of a Number by Recursion # Input a number and show its factorial # using a user defined recursive factorial function # www.EasyCodeBook.com from tkinter import * def inputn(): n= int(entry.get()) # call recursive_factorial function fact= recursive_factorial(n) str1… Read More »

Python GUI Program Area of Triangle with base and height

Topic:Python GUI Program Area of Triangle with base and height # Python GUI Program to calculate # Area of a Triangle # When base and height given # www.EasyCodebook.com from tkinter import * def calculate_area(): base = float(entry1.get()) height = float(entry2.get()) area = 1 / 2 * base * height output_label.configure(text = ‘ Area of… Read More »

Python GUI Temperature Conversion Program Celsius to Fahrenhiet

Topic: Python GUI Temperature Conversion Program Celsius to Fahrenhiet # Python GUI program Temperature conversion # Celsius to Faherenheit # Input Celsius, Find Fahrenheit # www.EasyCodeBook.com from tkinter import * def convert_temperature(): temp = float(entry.get()) temp = 9/5 * temp+32 output_label.configure(text = ‘ Converted to Fahrenheit: {:.1f} ‘ .format(temp)) main_window = Tk() main_window.title(“www.EasyCodeBook.com”) message_label =… Read More »