Skip to main content

Posts

Code #11 Speak Function

                GREETINGS TO ALL YOU!!!! This is text to speak converter Function from  win32com.client  import  Dispatch def   speak (str):     speak = Dispatch( "SAPI.spVoice" )     speak.Speak( str ) if  __name__  ==   "__main__" :     speak("# your text goes here")
Recent posts

GUI (With Python) # 1

                         GREETINGS TO ALL OF YOU!!!! Welcome everyone to our very new logic building program Where We are Going To Start Our New J ourney😎😎  Series Of GUI With Python#1 # Getting Start With The Basics Of GUI ( Graphic User Interface) Python provides various options for developing graphical user interfaces (GUIs). Most important are listed below. Tkinter  − Tkinter is the Python interface to the Tk GUI toolkit shipped with Python. We would look this option in this chapter. wxPython  − This is an open-source Python interface for wxWindows  http://wxpython.org . JPython  − JPython is a Python port for Java which gives Python scripts seamless access to Java class libraries on the local machine  http://www.jython.org .  # In This Series We are Going To have Our GUI With Tkinter Module # Lets See A basic GUI window With Tkinter Module # Code for it :- import Tkinter t...

DIAGRAM #1 WHILE LOOP STRUCTURE

                             GREETINGS TO ALL OF YOU!!!!!!!! WHILE LOOP STRUCTURE  HOW WHILE LOOPS WORK??? YOU WILL BE KNOWING IT WITH THE HELP OF DIAGRAM thank you guys and please make sure you follow me on  instagram: https://www.instagram.com/vaibhavsingh_star/  

Making LCM Finding Program #10

 GREETINGS TO ALL OF YOU!!!! Welcome everyone to our very new logic building program  *LOWEST/LEAST COMMON MULTIPLY(LCM) a= int ( input ( "Enter the first number: \n " )) b= int ( input ( "Enter the second number: \n " )) maxnum= max (a,b) while True : if maxnum%a== 0 and maxnum%b== 0 : print ( f"LCM of { a } and { b } is { maxnum } " ) break maxnum+= 1 OUTPUT: Enter the first number: 8 Enter the second number: 6 LCM of 8 and 6 is 24 Thank you everyone and please do make sure you follow me on instagram: https://www.instagram.com/vaibhavsingh_star/

code#9 Simple Interest Calculator (With Error Handling Concept)

 GREETINGS TO ALL OF YOU!!!! WE ARE GOING TO MAKE A SIMPLE INTEREST CALCULATOR AND WE WILL BE UNDERSTANDING THE CONCEPT OF ERROR HANDLING TOO!!! SO LET'S GET STARTED  P=float(input("enter the principal amount")) R=int(input("enter the rate")) T=float(input("enter the time")) try:      interest=(P*R*T)/100 except:      print("Opps!! something went wrong") else:      print("Operation successful: ",interest) finally:      print("thank you for using Simple Interest Calculator") thank you guys!!! instagram id : https://www.instagram.com/vaibhavsingh_star/

Code #8 Error Handling Program

 GREETINGS TO ALL OF YOU!!!!!! #WE ARE GOING TO HAVE A LOOK TO ERROR HANDLING TOPIC  #IN PYTHON THERE ARE 4 MAIN ERROR HANDING KEYWORD try: is a keyword were we write our logic of the program except: is a keyword which helps us to catch the error and it only runs when there is an error in the program else: is conditional keyword  finally: is a keyword which is not so important but for making our program more efficient # so let's start with our program, we will make a average finding tool # this program will take to  total marks of the user and take total number of subject: n= input ( "Enter your Name: " ) total_marks= int ( input ( "enter the total marks: " )) total_subject= int ( input ( "enter the total subject: " )) try : print (total_marks/total_subject) except ZeroDivisionError : print ( "there should be atleast 1 subject" ) else : print ( "succesfully done:" ) finally : print ( f"thank you { n } for takin...

star pattern in triangle formation

GREETINGS TO ALL OF YOU!!!!! We will continue with our PATTERN PRINTING PROGRAM # To Make Right Triangle Formation  Pattern   n= int ( input ( "enter number:... \n " )) for i in range ( 0 ,n+ 1 ): # i= 0 to 5,i=0,1,2,3,4 for j in range ( 1 ,i): #j=1,0 ,1,1 1,2 (1,3) (1,4) print ( "*" , end = '' ) print ( " " ) thank you guys !!! instagram id: https://www.instagram.com/vaibhavsingh_star/