Message Box Python || Python

 

In this we are going to see a basic program to generate Message box or Alert box in Python Programming Language.


# You need to install this module using command "pip install pyautogui" first to execute the following
# enter input 0 to see the alert box
import pyautogui
num=int(input("Enter a value: "))
if num == 0:
    pyautogui.alert(" 100 cannot be divided by 0")
else:
    print(f'The value is {100/num}')

# Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post