Posts

Coding in Mobile Phone!

Image
Hello dudes! Long time no see.. Hope you are all doing great!.  Today we are excited to share that "Practicing coding is possible in mobile phones too!". We have came to know about an app named Sololearn in play store and gave a try! It's actually a blissful app guys and gals. Let's dive into some of the features of the app. 1. As the name denotes Sololearn is a learning app which focuses on teaching programming languages. This app consists of handful of courses ranging from Introduction to intermediate of languages such as python, SQL, C, C++, C#, Java, JS etc.  On enrolling, a course  takes us through a series of text lessons followed by drag and drop choose questions and fill in the blanks (which wanted you to type in the answer ). You are provided with 5 hearts, for each mistake you ll lose one heart 😒. The lessons are followed by quiz too!  The create section in this app is very good wherein people have uploaded source codes

BMI Calculator using python

Image
 Hello dudes! Long time no see.. Hope you are all doing greatπŸ˜ƒ After absconding for more than a month we came today to meet you all with a simple python program to calculate your own BMI (Body Mass Index) FYI what is mean by Body Mass Index? Body mass index (BMI) is a simple index of weight-for-height that is commonly used to classify overweight and obesity in adults . It is defined as a person's weight in kilograms divided by the square of his height in meters (kg/m 2 ) . [ If (You think == He might have stolen this definition of BMI from Wikipedia):         You are wrong ]  Hehe😁 actually i have stolen this definition from World Heath Organization So the program is : Explanation : - Height (in cm) and Weight (in kg ) asked from user as inputs in runtime. Here both the variables are declared as float datatype ,which allows decimal values in input. - Unit of height is converted from cm to m - BMI formula with respect to height and weight is defined -As per user input the calculat

Qr Code Generator using python

Image
Hello dudes! Inaiku nama paka pora topic uh " How to generate qr code using python " Qr code uh dhna da.. Online leh panikalamae Idhuku yenn daaw Python program lam nu neenga kepeenga aanal.. Nama local system leh generator panradhu comparatively safe and secure la boss!! Language : Python IDE used : Pycharm Pre-requisites : Indha particular program kaga rendu module nama install pananum guys and gals that's. 1. pyqrcode : This is the module responsible for generating qr code. 2. pypng : This module is used to print output as png file Indha rendu modules  aiyum neenga install panradhuku.. Vunga IDE oda Terminal Tab la jus  pip install pyqrcode pip install pypng  Nu type pani enter pana matum podhum meedhi elam Python pathupan 😝 Code : Pyqrcode and pypng modules Ah install panitu indha code ah neenga run pani patheenga na.. Neenga work panra file directory laiye vunga qr code generator agirkum!  Engaluku vandha Output!  So verum four l

Column Autofit in Excel using macro

Image
 Hello dudes! Did you ever feel irritated by resizing each column in Excel?πŸ‘€ Don't worry this post is to solve your problem! Yess this post is about "How to enable column auto-resizing feature in excel using a single line macro (VBA)" Language : VBA  Before resizing Size of column is not consistent with text Whenever the above problem arises we will be manually adjusting the column right? . But hereafter it wont be the case! Steps to enable column autofit feature: Step 1: - Right click on sheet name and select View Code Step 2 : - After getting this window click on the drop-down menu and select Worksheet (which means this code is applicable only for this specific sheet) - First and last line of the code will be generated automatically , so our work is to type " Cells.EntireColumn.Autofit " - Click on to excel icon on left corner (which brings you back to sheets) - Haan Done! - This code not only resize the columns as per existing data, but the resizing operat

Number Guessing Game

Image
 Hello Dudes!  Hope you all are doing well πŸ˜€  Today we gonna see a python code for " Number Guessing Game"! . In short, in this game python will choose a random number within the given range and you are required to guess the number. Don't worry, until you choose the right one it will help you with some comments πŸ˜‰. Language : Python IDE : Pycharm  Code : - "random" module is imported (with which random number can be generated within the given range). - An user defined function named "number_guessing_game" is created  - Two variables are created   1) number -In this variable randomly generated number is stored  2) guess - The number which you guess will be stored here . Initially this variable is assigned with null. - The logic behind while loop is : until you guess the correct number it will ask you to guess. - The logic behind if condition is : if guessed value is lower than the generated value then the comment " Your guess is too low"

Single Line Python Code for Calculator

Image
 Hello dudes! Inaiku nama pakaporadhu - Single line python code for calculator"  IDE : Visual Studio Code Input: print(eval(input ("Enter" ) ) )  ->eval() is an inbuilt function of python ->In this function when we pass any python expression as a “string” , it evaluates the expression and returns the result as an integer or float  -> so indha inbuilt function ah use pani nama single line la calculator pana mudiyum Output: -> Input code ah run panitu, direct ah terminal la poi nama calculations potu enter thandha udane answer vandhurum -> Here we gave 2+3/4*6  and got 6.5 as result -> Ethana mathematical expressions thandhalum BODMAS ( Brackets, Orders, Division, Multiplication, Addition and Subtraction ) rules padi dhan result varum So inike indha code try panunga, eval() use pani vera enalam pana mudiyum nu explore panitu comment la solunga! see you all in next post bybye Enjoy Coding!

Text_To_Speech_Using_Python

Image
 Hello dudes, Today we gonna see about how to generate audio from the text input using python. Language: Python IDE : Pycharm Step 1 : The API (Application Programming Interface) we will be using here is gTTS (google Text To Speech), so our first step is to install this API by running the following code pip install gTTS    Step 2 : Type the following code and execute : Using this code we have freedom to  : -> Change Text Input -> Change Language  -> Change Pace [Fast or Slow] -> Save the generated audio - > Play the generated audio Note : texts after "#"  symbol are comments ,otherwise called as non-executable statements which are given here only for the purpose of explanation.   Step 3:  Yeah its time to run it!   The generated audio will be saved in the location of the code. After saving, media player (at first time you are required to choose your desired media player) will be opened automatically.      There you go ! Here is the output.     Tip : You ma