# Category Archives: Uncategorized

## PyQt Program To Add Remove Clear Items From List

PyQt Program To Add Remove Clear Items From List – Source Code import sys from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QHBoxLayout, QPushButton, QLineEdit, QListWidget, QLabel class FruitListApp(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setWindowTitle(‘Fruit List’) self.setGeometry(100, 100, 400, 300) self.fruit_list = QListWidget(self) self.add_button = QPushButton(‘Add Fruit’, self) self.remove_button = QPushButton(‘Remove Fruit’, self) self.clear_button = QPushButton(‘Clear… Read More »

## C Sharp Program Factorial Method

C Sharp Program Factorial Method using System; namespace FactorialCalculator { class Program { static long Factorial(int n) { long fact = 1; for (int i = 1; i <= n; i++) { fact = fact * i; } return fact; } static void Main(string[] args) { int n; Console.Write(“Enter a number to find its factorial:… Read More »

## Print Hollow Triangle of Stars in Python

Print Hollow Triangle of Stars in Python – Write a python program to print hollow triangle of the stars. Source code n = 5 for i in range(1, n+1): if i == 1 or i == n: print(‘*’ * i) else: print(‘*’ + ‘ ‘ * (i-2) + ‘*’) Explanation Let us understand how this… Read More »

## Draft – Index of Programming tutorials

Draft – Accidentally published this Draft. But seeing interest of viewers / readers I am presenting a list of main pages in this website EasyCodeBook.com Perfect Programming Tutorials: Python, Java, C++, C … 100 + Important C Programs for Beginners HOME BASIC JAVA PROGRAMS PERFECT PYTHON TUTORIAL LEARN C PROGRAMMING BASIC C++ PROGRAMS IMPORTANT C… Read More »

## Using Call by Reference Swap Numbers

Using Call by Reference Swap Numbers – Write a C program to swap two values by call by reference method of parameter passing. Program for Passing Parameters – Call By Reference #include <stdio.h> void swap2numbers(int *n1, int *n2); int main() { int num1,num2; printf(“\n\n Using C Pointers : Swap Numbers Using Call by Reference :\n”);… Read More »

## Python Density of Cylinder Program

Python Density of Cylinder Program Write a program to input mass and volume of a cylinder and find the density of this cylinder using the formula d = m / v: Formulae of Density of Cylinder We will use the following formula for the calculation of density of the cylinder. Density = Mass / Volume… Read More »

## Python Number Guess Game Project Made Easy

Python Number Guess Game Project Made Easy – In this Python Project for beginners we will explain the code and logic of the popular number guessing game program in Python programming language. How Python Number Guessing Project Works Import Python Modules :- random and math First of all we will include some Python modules which… Read More »

## Python 3 Four Function Calculator Program tkinter GUI

Topic: Python 3 Four Function Calculator Program tkinter GUI Widgets used in Simple 4 Function Calculator We have used here: Label widgets to display labels for entry widgets for example. We use a label widget for showing result of addition, subtraction, multiplication or division. Last label simply displays ‘www.EasycodeBook.com for Python GUI Tutorials’. Two Entry… Read More »

## Python Decimal to Hexadecimal Conversion Program

Python Decimal to Hexadecimal Conversion Program – This Python tutorial will explain the actual logic to convert a decimal number to corresponding hexadecimal number. It will also explain the important statements of the Python program for conversion of decimal to hexadecimal number. How to Convert Decimal to Hexadecimal Number We know that the hexadecimal number… Read More »

## How To Run Python on Windows

How To Run Python on Windows – The minimum requirement to do so is to Install Python on Windows. Here is a simple and easy to understand Python Installation Tutorial With Pictures. How To Download and Install Python On Windows You can easily download and install Python on Windows by following the steps described in… Read More »