Skip to main content

Posts

Showing posts from December, 2020

Fahrenheit temperature and Kelvin changing in Celsius temperature with text in speech

Fahrenheit temperature and Kelvin changing in Celsius temperature with out in speech If you want of this source code in java language so click on it Get  How to speech of output : first we need to  import gtts and playsound package in python our code editer because in this program we want to speech of every output . then we will save of this variable with  obj.save( "any_name.mp3" )    and we also want to speech of this. after saving of this. we write like this  playsound( "any_name.mp3" )   for speech of obj.save. It is only for Text speech you can also use of this code-source for text -speech  #librery which by we can change text in speech in present of internt your system from gtts import gTTS #import playsound for play text speech from playsound import playsound #syntax of this is variable_name=gTTS(text="your text ", lang='language' ,slow=True or False) obj=gTTS( text = "text here for speeching ok my dear " , lang = '

Function in Python programming language

  Function in Python? In Python, a function is a group of related statements that performs a specific task. Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable. Furthermore, it avoids repetition and makes the code reusable. Syntax of Functio n def function_name ( parameters ): """ docstring """ statement(s) Above shown is a function definition that consists of the following components. Keyword  def  that marks the start of the function header. A function name to uniquely identify the function. Function naming follows the same rules of writing identifiers in Python. Parameters (arguments) through which we pass values to a function. They are optional. A colon (:) to mark the end of the function header. Optional documentation string (docstring) to describe what the function does. One or more valid python statements that make up the function body. Stateme

Best Python Libraries and Packages

  Python Libraries and Packages are a set of useful modules and functions that minimize the use of code in our day to day life. There are over 137,000 python libraries and 198,826 python packages ready to ease developers’ regular programming experience. These libraries and packages are intended for a variety of modern-day solutions. Python libraries and python packages play a vital role in our everyday  machine learning . In fact, their use is not limited to machine learning only. Data Science, image and data manipulation, data visualization – everything is a part of their generous applications. Best Python Libraries and Packages Python Packages are a set of  python modules , while python libraries are a group of  python functions  aimed to carry out special tasks. However, in this article, we are going to discuss both the libraries and the packages ( and some toolkits also ) for your ease. 01. Pillow Pillow is actually a fork of PIL – Python Image Library. At first, pillow was mainly