This is a Python script of the classic game “Hangman”. The word to guess is represented by a random alphabet (A-Z). If the player guess a letter which exists in the word, the script writes it in all its correct positions. The player has 10 turns to guess the word, if fails to complete the

# Category: Python Tutorial

## Python Basics : Multiplication Table

Multiplication Table From 0 to 15. Python Code :- #multiplication table from 0 to 15 print(” “,end=””) for i in range(16): print(“%5d|”%i, end=””) print() print(“______” * 17) for i in range(16): print(“%5d|”%i, end=””) for j in range(16): print(“%5d|”%(i*j), end=””) print() Output :-

## Python Basics : How To Calculate Salary of Employee (with Taxable amount)

Simple Python Program To Calculate Salary of Employee with their certain Taxable amount. This program allows the user to enter values such as: Name of Employee, Name of the Company, Salary Amount and then calculates the Taxable amount with certain salary condition applied in code & displays the Salary. Python Code :- e_name=input(“Enter the name of

Continue reading Python Basics : How To Calculate Salary of Employee (with Taxable amount)

## Python Basics : How To Calculate Average Number

This simple Python program allows the user to enter infinite values (with y/n condition ) and then add those entered numbers and displays the average number. Python Code :- a=[ ] b=’y’ while b==’y’: n=input(‘Enter a Number: ‘) a.append(int(n)) b=input(‘Continue(y/n): ‘) s=0 for number in a: s += number avg=s/len(a) print(a) print(“The Sum is %d” % (s))

Continue reading Python Basics : How To Calculate Average Number

## Python Basics : How To Add Numbers

In order to show, we are going to add two numbers using Arithmetic Operators. This simple Python program allows the user to enter two values and then add those two numbers and display the total variable sum. Python Code :- #python program to Add Two Numbers number1 = input(” Enter the First No: “) number2 = input(” Enter