-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaux.py
More file actions
170 lines (127 loc) · 2.83 KB
/
aux.py
File metadata and controls
170 lines (127 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
print ("hello, world!")
if 7 < 9:
print("Seven is less than nine!")
if -3 > -4:
print("Negative three is greater than negative four!")
y = "Technodot"
x = "Hardwaregore"
print(x)
print(y)
my_variable = 'Techdudie'
print("my_variable is the best!")
a, b, = ['TechnoDot', 'Hardwaregore']
print(a)
print(b)
Names = ["@SirAlexBigBrain", "@TechnoDot", "@Hardwaregore"]
x, y, z = Names
print(x)
print(y)
print(z)
x = "love video games!!!"
print(x)
def myfunc():
print("Hardwaregore and TechnoDot are " + x)
myfunc()
Alex = 1234567890"
Q = "2.12"
Z = 67j"
print(int(Alex))
print(float(Q))
print(complex(Z))
import random
print(random.randrange(-18, 36))
txt = "I am a fencer!"
if "fencer" in txt:
print("Yes, 'fencer' is present.")
a = "I Play Soccer!"
print(a.upper())
a = "I am TechnoDot!"
print(a.replace("TechnoDot", "SirAlexBigBrain"))
s = w
print(capitalize(s))
print(10 > 9)
print(10 == 9)
print(10 < 9)
a = 200
b = 33
if b > a:
print("b is greater than a")
else:
print("b is not greater than a")
x = 4
y = 3
print(x**y)
mylist = ["A", "W", "Y"]
print(mylist)
thislist = ["a", "b", "c"]
print(len(thislist))
thislist = ["QwErTy", "QWERTY", "qwerty"]
i = 0
while i < len(thislist):
print(thislist[i])
i = i + 1
list1 = ["@Al", "@We", "@Ya"]
list1.sort()
print(list1)
list2 = [100, 50, 65, 82, 23]
list2.sort()
print(list2)
thisdict = {
"brand": "EA fencing",
"model": "Pistol Grip",
"year": 2021
}
print(thisdict)
a = 23140
b = 33333
if b > a:
print("b is greater than a")
elif a == b:
print("a and b are equal")
else:
print("a is greater than b")
print(a / b)
i = 1
while i < 200:
print(i)
i += 1
x in range(6):
print(x)
else:
print("Whew! I'm done!")
def my_function():
print("Python is so much more efficent! " + a - b)
print(my_funtion())
def my_function(*language):
print("The better coding language is " + language[1])
my_function("Bash", "Python")
people = ["@YOU", "@ME", "@PERSON OVER THERE"]
print(people)
people[0] = "not you, Y"
people.remove("@ME")
mytuple = ("@SirAlexBigBrain", "@TechnoDot", "@Hardwaregore")
myit = iter(mytuple)
print(next(myit))
print(next(myit))
print(nex:
people = "Wenqian and Yabo!
f"I like {people}"
import turtle
import random
stamp = turtle.Turtle()
stamp.shape('turtle')
stamp.penup()
turtle.colormode(255)
paces = 20
random_red = 50
random_green = 50
random_blue = 50
for i in range(50):
random_red = random.randint(0, 255)
random_green = random.randint(0, 255)
random_blue = random.randint(0, 255)
stamp.color(random_red, random_green, random_blue)
stamp.stamp()
paces += 3
stamp.forward(paces)
stamp.right(25)