Skip to content

Commit df40c9f

Browse files
authored
Create Alert Box With Python.py
1 parent 733185a commit df40c9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Alert Box With Python.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import pyautogui
2+
num=int(input("Enter a value to divide 100"))
3+
if num == 0:
4+
pyautogui.alert(" Alert!!! 100 cannot be divided by 0")
5+
else:
6+
print(f'The value is {100/num}')

0 commit comments

Comments
 (0)