1#Use this to shortern a task that you may want to repeat
2#Used for making custom commands
3def paste(a, b)
4 for i in b:
5 print(a)
6
7
8while True:
9 paste("Python is Cool!!!", 3)
10
11#Output:
12#Python is Cool!!!
13#Python is Cool!!!
14#Python is Cool!!!
15
16
17
18
19
20## - ANOTHER EXAMPLE - ##
21
22
23
24
25
26happy = "NEUTRAL"
27
28def yes():
29 happy="TRUE"
30 print("Thank you!")
31
32def no():
33 happy="FALSE"
34 print("That's not nice!")
35
36answer=str(input("Do you like my new shoes? (y/n) ")
37if answer=="yes" or "y" or "Yes" or "Y" or "YES":
38 yes()
39elif answer=="no" or "n" or "No" or "N" or "NO":
40 no()
41
42
43
1# Action Statements
2
3print('hello world')
4
5# Varables
6
7x = 12
8
9y = input("Prompt")
10
11n = True
12
13if n:
14 # Some Stuff in here
15
16def N(Terms):
17 # Some Stuff in here
18
19N(x)
20