Skip to main content

How to make calculator in python kivy

  How make calculator in python We make a calculator in python using kivy module . Kivy module helps us to make android apps . First wait , If you run a kivy program in your terminal then you see a error like this To solve this problem you have to go kivy docs and follow the instruction of kivy docs.  First we have to make a virtual environment and then in the virtual environment you have to install kivy . After that you have to write  kivy_venv\Scripts\activate in your terminal and then run the file . If this method not work then write the comment below. LETS START CODING First we import kivy .For this we hve to write  from  kivy.app  import  App from  kivy.uix.label  import  Label from  kivy.uix.button  import  Button from  kivy.core.window  import  Window from  kivy.uix.gridlayout  import  GridLayout from  kivy.uix.widget  import  Widget from  kivy.lang  import ...

How To Make Audiobook in python

 What is Audiobook?

Audiobook is a recording of book . Recording of book contain the content of book .

Audiobook read the book content . We not need to read a book . We only listen the audiobook.

How to make Audiobook in python

We make audiobook in python which read the content of book . For this we have to write some line of code to make program which read the book in python.

LETS START CODING 

First we have to import pyttsx3 , PyPDF2  and tkinter.filedialog . For this we have to write import pyttsx3

import PyPDF2
from tkinter.filedialog import *


After this we have to take input book name which is in pdf format from the user and read the input book. or this we have to write 


book = askopenfilename()
pdfreader = PyPDF2.PdfFileReader(open(book, 'rb'))
pages = pdfreader.numPages
print ("NOTE : counting start from 0")
i = int(input("Enter the page you want to start read:"))

After this we have to make a player which read the book . For this we have to write 

for num in range(i,pages):
    text= pdfreader.getPage(num).extractText()
    
    print(text)
    player = pyttsx3.init()
    player.say(text)
    player.runAndWait()
    

HERE ARE THE CODE



OUTPUT








Here the program print the book content and read it .