Sie sind auf Seite 1von 12

A Project Report

on

Number game in python

Submitted By:
Name: V.P.YASHWANTH PREMRAJ
Class: Xll B
Roll No: 12232

Under the Guidance of


Mr. Amith kumar gupta
PCT (Computer Science)
KendriyaVidyalaya Anna Nagar
TABLE OF CONTENTS

 Certificate
 Acknowledgement
 Package/Module used in the
Project- short description of the
Module.
 Coding
 Limitations
 Requirements
 Bibliography
CERTIFICATE
This is to certify that V.P.Yashwanth Premraj of class XII B, has
prepared the report on the project entitled ‘Program
on Number Game’. The report is the result of his
effort and endeavors. The report is found worthy of
acceptance as final project report for the subject of
Computer Science of class XII under the CBSE
curriculum 2019-20.

External Examiner Internal Examiner


(M.r.Amit kumar gupta)

Principal
(M.r.vallabhan)
Declaration

I hereby declare that the project work entitled ‘Program

on Number Game’ submitted to Department of


Computer Science, KV Anna Nagar, is prepared by
me. All the coding and Project report is result of my
personal effort.

Name: V.P.Yashwanth Premraj


Class: XII B
Roll No: 12232
Acknowledgement
I would like to express a deep sense of thanks & gratitude to
my project guide M.r.Amith kumar gupta Sir, for guiding me
immensely through the course of the project. He always evinced
keen interest in my work. His constructive advice &constant
motivation have been responsible for the successful completion
of this project.
My sincere thanks go to M.r.Vallabhan, Our principal Sir,
for his co-ordination in extending every possible support and IT
infrastructure for the completion of this project.
I also thanks to my parents for their motivation &support. I
must thank my classmates for their timely help & support for
completion of this project.
Last but not the least, I would like to thank all those who
had helped directly or indirectly towards the completion of this
project.
Name: V.P.Yashwanth Premraj
Class: Xll B
General Overview of the Problem

In this game the computer chooses a random number between 1


and 100, and the player tries to guess the number in few attempts
as Possible. Each time the player enters a guess, the computer
tells him whether the guess is too high, too low, or right. Once the
player guesses the number, the game is over.
REQUIREMENT AND ANALYSIS

The application ‘Online Banking System’ being a small, portable and


having good GUI, A computer system should have the combination of
following hardware and software-
1. Hardware Requirement:
 Intel I3 Processor
 Minimum 2 GB RAM
 Atleast 500GB HDD
2. Software Requirement:
 Windows 7/9/10 OS
 Python 3.X IDLE
A Brief Introduction of Python

Python is a widely used general-purpose, high-level programming


language. It was initially designed by Guido van Rossum in 1991 and
developed by Python Software Foundation. It was mainly developed for
emphasis on code readability, and its syntax allows programmers to
express concepts in fewer lines of code.

 Python laid its foundation in the late 1980s.


 The implementation of Python was started in the December 1989
by Guido Van Rossum at CWI in Netherland.
 In 1994, Python 1.0 was released with new features like: lambda,
map, filter, and reduce.
 Python 2.0 added new features like: list comprehensions, garbage
collection system.
 On December 3, 2008, Python 3.0 (also called "Py3K") was
released. It was designed to rectify fundamental flaw of the
language.
 ABC programming language is said to be the predecessor of
Python language which was capable of Exception Handling and
interfacing with Amoeba Operating System.
 Python is influenced by following programming languages:
 ABC language.
 Modula-3
Python Code
Import random

number=random.randrange(0,100)

guessCheck="wrong"

name=input("please enter your name")

print("Welcome to Number Guess,"+name)

while guessCheck=="wrong":

response=int(input(" enter a number between 0 and 100:"))

try :

val=int(response)

except Value Error:

print("\n" + name + ",This is not a valid integer. Please try


again")

continue

val=int (response)
if val<number:

print("\n" + name + ",This is lower than actual number.


Please try again.")

elif val>number:

print("\n" + name + ",This is higher than actual number.


Please try again.")

else:

print("you have guessed the correct number")

guessCheck="correct"

print("Thank you for playing Number Guess.")


OutPut Screen
Bibliography

 The following books and websites have been referred during project
development-
 Text Book: Computer Science with python by Sumita Arora
 Websites:
1.https://www.w3schools.com
2.https://www.pythonpoint.com

Das könnte Ihnen auch gefallen