Skip to main content

How to send WhatsApp message using Python| Python| #python | #pywhatkit |python for beginner

How to send WhatsApp message using python. 

Hello readers, 

In this blog you are going to see that how you can send WhatsApp message using python programming language. Before performing this you must know python programming language. 


Whatsapp logo 



python logo 


Python is an interpreted high-level general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation. You can do amazing things using python. Python was developed by Guido Van Rossum. The python language first version was released in 1991. Python language is named as python after a BBC show "Monty Python's flying circus". Python is getting more popular and it has a strong community. Python language is now also being used in AI(Artificial intelligence) and Machine learning. 

Features of Python programming language -(in short)

1) Python is High level programming language.

2) Python is free and open source language.

3) Python is simple.

4) Python offer more effective error checking and python having built in high level data type.

5) Python is platform independent. 

6) Python is user friendly.

7) Python support object oriented programming concept. 



Types of error in python - 

1) Syntax Error - Syntax error means the structure of the program. If the syntax is not correct it result in syntax error. 

2) Runtime Error - Runtime error does not appear until the program has started running. it is also known as exception which indicates something bad(exception) has happened.

3) Semantic error - In this error, program will execute properly without showing any error message but it will not get the correct result. You can also say that there is a logical error.

4) Experimental error - Debugging is also known as an experimental error.



How to install Python? 

To install python perform the following steps :-

1) Go to - https://www.python.org/downloads/ 

2) click "Download" .

3) Download the any latest python version from the given website .

4) When download complete just open your file explorer and double click on downloaded python file and install the python in which directory you want. 

5) After the successful installation just double click on python icon on desktop to open python IDE.  



vs code 



Today i will tech you how you can send WhatsApp messages using. You can send WhatsApp messages using python by writing two lines of code. 

For doing this you must have installed python and any IDE which supports python like - Pycharm or VScode and you also need to install a lib which is known as pywhatkit.

To install this lib go to command prompt and type" pip install pywhatkit". 


code : - 

import pywhatkit

pywhatkit.sendwhatmsg('Contact no with country code','Message', HH, MM)



pycharm - https://www.jetbrains.com/pycharm/download/#section=windows


VS code - https://code.visualstudio.com/docs/?dv=win







Comments

Popular posts from this blog

S.Y.I.T Sem 3 Python Practical | Python| Python practical 1a| Print name and age +100 | python for beginner

 Hello reader's , This blog is for those students who are studying in second year of information technology. This blog is for practical of python  subject which is in sem 3. In this blog you are going to see that how you can ask user to enter their name and age. Print out a message addressed to them that tells them the year that they will turn 100 year old. For performing this practical you must have install python on your laptop or pc. to download python  - https://www.python.org/downloads/  python website  go to the link and download python and you need a IDE which supports python,  i am using VS Code, you can use python IDE too.  vs code screen After the successful installation open ide and type the code or simply copy the code from given link in below and run it to see the output. code -  name = input("Enter your name: ") age = int(input("Enter your age: ")) year = str((2021 - age)+100) print(name + "will be 100 years old in the year"+year)

Simple calculator using python| Python | Calculator | python for beginner

 Hello reader's, Today you are going to see that how can you develop your own calculator using python . simple calculator using python To perform this activity you must have installed python on your system.   To install python perform the following steps :- 1) Go to - https://www.python.org/downloads/  2) click "Download" . 3) Download the any latest python version from the given website . 4) When download complete just open your file explorer and double click on downloaded python file and install the python in which directory you want.  5) After the successful installation just double click on python icon on desktop to open python IDE.  python logo  After the successful installation of python you need a IDE which support python. I am using VS code(Visual studio code), you can use pycharm or python ide too. how to install VS Code? To install VS code(Visual Studio code) follow these steps :-  1) Go to - https://code.visualstudio.com/download  2) S...

Print calendar using python | Python| Calendar using Python |python for beginner

Hello readers, Today, we are going to see that how can we print the calendar using python.   Print calendar using python  In this blog you are going to see that how can you print calendar using python programming language. To perform this activity you must know the basics of python because we are going to use python programming language.   To perform this activity you must have to install python on your laptop or desktop. If you don't know that how to install python then follow these steps.    To install python perform the following steps :- 1) Go to - https://www.python.org/downloads/  2) click "Download" . 3) Download the any latest python version from the given website . 4) When download complete just open your file explorer and double click on downloaded python file and install the python in which directory you want.  5) After the successful installation just double click on python icon on desktop to open python IDE.  python logo  Af...