Python Projects (easy)
with ComputerScienceWorld
In this Dictionary, you can also Add words, if you want. If you know Python notification module then you can add it with timer and get notification of word mean time to time.
It is Interesting to use. you can learn meaning, full-forms and much more you want
1) How to make a Simple Dictionary in Python.
Dict = {'HTTPS' : 'Hyper Text Transfer Protocol',
'HTML' : 'Hyper Text Mark up Language',
'FIR' : 'First Information Report',
'CPU' : 'Central Processor Unit',
'SET' : 'All Define Intersection Number',
'EXIT' : 'I wish you love the Dictionary See you Soon',
'DICT': 'Dict'
}
while(1):
mean = (input("Enter the Word: ")).upper()
print(Dict[mean] )
if mean == 'DICT':
print(' is the list of Words, that you use')
elif mean == 'exit':
break
2) How to make a Simple Speaker.
In this Project, you can speak any word, Just Copy text and Paste to the Popup-Box.
To start this module, First of all you need to install
#pip install pyautogui
#pip install pyttsx3
You can also use without pyautogui
import pyautogui
import pyttsx3
engine = pyttsx3.init('sapi5')
voices = engine.getProperty("voices")
# print(voices)
engine.setProperty('voice', voices[1].id)
def speak(audio):
engine.say(audio)
engine.runAndWait()
while(True):
user = pyautogui.prompt("Type Here to Speak: ")
#user = ("Type Here to Speak: ") if you don't want to use pyautogui
if user != "stop":
speak(user)
continue
elif user == "stop":
speak("meet you soon!")
break
speak("thanks! for use this program")
3) How to make a Simple Word Counter (space also count).
In this Project, Here you can Count word length. even, Paragraph, sentence
Just copy line and paste it. (Space also Count)
while True:
word = input("enter the line you want count : ")
if str(word):
print(len(word))
If you want word, line, sentence or other counter in different, comment me for it.
4) How to make a Simple Calculator.
In this Project, I Present you a Calculator. This is also called first Project of Python Beginner.
It is easy to make it.
while (True):
a = float(input('First Number : '))
sign = input('Sign : ')
b = float(input('Second Number : '))
if sign == "+":
add = a + b
print('sum of ', a, "+", b, "is = ", add)
elif sign == "-":
sub = a - b
print('subtract = ', sub)
elif sign == "*":
multi = a * b
print('multiplying = ', multi)
elif sign == "/":
div = a / b
print('division = ', div)
elif sign == "**":
power = a ** b
print('power = ', power)
elif sign == "%":
percent = a % b
print('power = ', percent)
elif sign == "//":
remainder = a // b
print('power = ', remainder)
else:
print('''Invalid Number or Sign,
Please try again...''')
continue
Comment Now, If you want a Awesome Calculator.
5) How to make a Simple Timer.
This is the Timer Project, Here you can add Alarm and by using python module you can listen Sound. If you want to add music, use pygame module.
import pyautogui
import pyttsx3
import datetime
engine = pyttsx3.init('sapi5')
voices = engine.getProperty("voices")
print(voices)
engine.setProperty('voice', voices[1].id)
def speak(audio):
engine.say(audio)
engine.runAndWait()
timr = datetime.datetime.now().strftime("%H:%M")
timer = datetime.datetime.now()
hour = datetime.datetime.now().hour
print(hour)
print(timr)
# if hour > 0 and hour <= 3:
# speak("Good Morning! peeush bhaghel") #Piyush Baghel
if hour <= 3:
speak("Good Morning! sir, it's time to sleep.")
elif hour <= 6:
speak("Good Morning! sir")
elif hour <= 12:
speak("Good Afternoon! sir, time to launch")
elif hour <= 13:
speak("good afternoon! sir")
elif hour <= 16:
speak("good evening! sir, it's time to brunch")
elif hour <= 20:
speak("good evening! sir, time to dinner, always be on time")
elif hour <= 22:
speak("time to bed, sir! can't be late")
else:
speak("it's Time Problem! sir. please check it.)
2 Comments
Cool Bro Amazing...
ReplyDeleteReally know wale h post esehi dalte rahiye
ReplyDelete