Project
Project
RATHOD RAJNIKANT
PROJECT REPORT
On
Topic
Submitted to
Noble University, Junagadh
&
Drona Foundation
Institute Code: 738
Under the Guidance
Prof. Priti Mishra
In Partial Fulfillment of the Requirement of The
Award of The Degree of
Bachelor of Vocation ( B.Voc )
Offered By
Noble University & Drona Foundation
Prepared by:
Name :- RATHOD RAJNIKANT VIJAY BHAI
Enrollment No :- 230981026
B.Voc (Sem-I)
Month & Year:
July-December 2023
▪TOPIC
Create a text-based calendar or reminder
system to manage appointments and events.
➢ INPUT
import os
def display_menu():
print("Text based calender")
print("1. View calender")
print("2.Add Event")
print("3. Exit")
def view_calender():
with open ("calender.txt","r") as file:
calender = file.read()
print("calender:")
print(calender)
def add_event():
event_date = input("Enter the dete(dd-mm-yyyy):")
event_text = input("Enter the event:")
with open("calender.txt","a") as file:
file.write(f"{event_date}:{event_text}\n")
print("event added successfully")
while True:
os.system('cls'if os.name == 'nt' else 'clear')#clear the console
display_menu()
choice = input("selected an option:")
if choice == '1':
view_calender()
elif choice =='2':
add_event()
elif choice =='3':
print("Good Bye!")
break
else:
print("invalid choice...please try again.")
➢ OUTPUT
EXPLANATION:
The code is a simple text-based calendar program that
allows users to view and add events to a calendar
stored in a file named "calendar.txt." Here's a
breakdown of the code
The program starts with a menu that provides three
options: view the calendar, add an event to the
calendar, and exit the program.
console.
mm-yyyy:event_description."
(choice 3).
corresponding action:
of the loop.
5. Os.system :
• It uses os.system to clear the console. It checks the
It is used for:
• Versatile:
• Powerful:
• Portable:
Why Python?
Good to know
❖ LANGUAGE FEATURES
➢Interprete
code.
run it.
▪ No need to worry about linking and
▪ Platform Independent
o Python programs can be developed
and executed on multiple operating
system platforms.
o Python can be used on Linux,
Windows, Macintosh, Solaris and
many more.
▪ Free and Open Source; Redistributable
▪ High-level Language
o In Python, no need to take care about
low-level details such as managing
the memory used by the program.
▪ Simple
o Closer to English language;Easy to
Learn
o More emphasis on the solution to the
problem rather than the syntax
▪ Embeddable
o Python can be used within C/C++
program to give scripting capabilities
for the program’s users.
▪ Robust:
o Exceptional handling features
o Memory management techniques in
built
▪ Rich Library Support
o The Python Standard Library is very
vast.
o Known as the “batteries
included” philosophy of Python ;It
can help do various things involving
regular expressions, documentation
generation, unit testing, threading,
databases, web browsers, CGI, email,
XML, HTML, WAV files,
cryptography, GUI and many more.
o Besides the standard library, there
are various other high-quality
libraries such as the Python Imaging
Library which is an amazingly simple
image manipulation library.
ADVANTAGES :
• Presence of third-party modules
• Extensive support libraries(NumPy for
numerical calculations, Pandas for data
analytics etc)
• Open source and community
development
• Versatile, Easy to read, learn and write
• User-friendly data structures
• High-level language
• Dynamically typed language(No need to
mention data type based on the value
assigned, it takes data type)
• Object-oriented language
• Portable and Interactive
• Ideal for prototypes – provide more
functionality with less coding
• Highly Efficient(Python’s clean object-
oriented design provides enhanced
process control, and the language is
equipped with excellent text processing
and integration capabilities, as well as
its own unit testing framework, which
makes it more efficient.)
• (IoT)Internet of Things Opportunities
• Interpreted Language
• Portable across Operating systems
DISADVANTAGES :
o Slow speed:
Python is an interpreted language, which
means that it is not converted to machine
code before it is executed. This can make it
slower than compiled languages, such as C
or Java.
o High memory usage:
Python uses a lot of memory, especially for
large datasets. This can be a problem on
low-memory devices, such as Raspberry Pi.
o Weak in mobile computing:
Python is not as well-suited for mobile
development as some other languages,
such as Java or Kotlin. This is because
Python's standard library does not include
many of the features that are needed for
mobile apps, such as touch support and
graphical user interfaces.
o Database access:
Python's database access layer is not as
well-developed as some other languages,
such as Java or SQL. This can make it
difficult to work with databases in Python.
o Runtime errors:
Python is a dynamically typed language,
which means that the type of a variable is
not checked until it is used. This can lead to
runtime errors, which can be difficult to
debug.
Despite these disadvantages, Python is a
powerful and versatile language that is used
in a wide variety of applications, such as data
science, machine learning, and web
development.
▪ APPLICATIONS :
1. GUI based desktop applications
2. Graphic design, image processing
applications, Games, and Scientific/
computational Applications
3. Web frameworks and applications
4. Enterprise and Business applications
5. Operating Systems
6. Education
7. Database Access
8. Language Development
9. Prototyping
10. Software Development
11. Google (Components of Google)
12. Yahoo (Maps)
13. YouTube
14. Mozilla
15. Dropbox
16. Microsoft
17. Cisco
18. Spotify
19. Quora