Predicting The Future: A Python Project On Future Prediction Game

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Predicting the

Future: A
Python Project
on Future
Prediction Game
Team members:

Team no. 9 - ABHAY CHAUDHARY(500122710)


DHRUV KASANA(500120632)
ANUJ (500123458)
DEVANSH SAINI(500119031)
1.Introduction
2.Understanding Zodiac prediction
3.Module used
4.Class
INDEX 5.Functions used
6.Code snippets
7.Output
8.Conclusion
Introduction

Welcome to Predicting the Future!


This project explores how to use
python to create a future prediction
game. We will delve into various
prediction models and algorithms to
make the game engaging and
accurate. Let's embark on this exciting
journey of predicting the future!
Understanding zodiac Prediction

Before diving into the project, it's


crucial to comprehend the
intricacies of predicting the zodiac
sign. We will explore the
significance of data analysis,
machine learning, and statistical
modeling in making accurate
predictions. Let's unravel the
mysteries of zodiac sign together!
Python Modules

datetime About
OVERVIEW
• PURPOSE: Manipulate and format dates and times.
• Components: ‘datetime’, ‘date’, ‘time’,’timedelta’,’timezone’.
• Import: import datetime

Key Points:
• Simple yet powerful for date and time operations.
• Offers classes for specific purposes like date,time, and timedelta
• Supports formatting and parsing of date/time strings.
• Easy integration with timezones using ‘pytz’ module.
CLASS
Definition: A class is a blueprint for creating objects.

Brief:
• The class has a dictionary called ‘zodiacs, which maps
each zodiac sign to tuple containing the start and end
dates of that sign’s period.
• There’s a list of predictions, which are strings
representing various fortunes or predictions one might
encounter in a daily horoscope or fortune-telling
applications.
Functions

1. _init_(self): Constructor that initializes the class


and greets the user
2. greet_user(self): Prints a greeting message.
3. get_user_name(self): Prompts the user for their
name and prints a personalized greeting.
4. get_user_birth_info(self):Ask the user for their
DOB in the format DD/MM/YYYY and returns the
day and month.
Functions

1.ask_birth_time(self):Asks the user if they know


their birth time. If yes, it prompts for the time and
returns it if the format is otherwise, returns None
2.get_zodiac_sign(self, day, month):
Determines the zodiac sign based on the birth
month and day.
3.user_zodiac_output(self, day, month):
Retrieves and prints the user's zodiac sign.
Functions

1.get_user_choice(self): Prompts the user to select a


number from 0 to 10 to use in the prediction.
2.predict_future(self, number): Provides a future
prediction from the list based on the user’s chosen
number.
3.closing_message(self): Prints closing remarks,
thanking the user for playing and wishing them well.
Code snippet 1

Output:
Code snippet 2

Output:
Code snippet 3

Output:
Sample Output
Conclusion
As we conclude our journey, we have gained
insights into the fascinating world of future
prediction using Python. This project has not
only honed our programming skills but also
provided a deeper understanding of prediction
algorithms.
Let's continue to explore the endless
possibilities of predicting the future!
Thanks!
GROUP MEMBERS:

-ABHAY CHAUDHARY
DHRUV KASANA
ANUJ
DEVANSH SAINI

You might also like