Skip to content

Commit e72fae6

Browse files
New file added
1 parent 7b2d436 commit e72fae6

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
# simplePythonProgram
1+
# simplePythonProgram
2+
3+
This file contains 2 programs
4+
- helloworld.py: a simple hello world program
5+
- spam.py: a simple program to give spam message to anyone
6+
7+
To run spam.py install pyautogui
8+
<pre>
9+
<code>pip install pyautogui</code>
10+
</pre>

helloworld.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
print("Hello World")
2+
3+

spam.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pyautogui, time
2+
time.sleep(5)
3+
4+
str = "Hello World"
5+
count = 20
6+
7+
8+
for word in range(count):
9+
pyautogui.typewrite(str)
10+
pyautogui.press("enter")
11+
12+
print("Success")
13+

0 commit comments

Comments
 (0)