Skip to content

Commit 48129b1

Browse files
committed
Create python.py
1 parent b7b957c commit 48129b1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

python.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Comment
2+
from numpy import random
3+
4+
class Class:
5+
"""
6+
Docstring
7+
"""
8+
def __init__(self, istrue, text):
9+
self.istrue = istrue
10+
self.text = text
11+
12+
def __str__(self):
13+
return f"{self.text}"
14+
15+
def main():
16+
print("Hello, world!")
17+
18+
some_list = [4, 3, 2, 1]
19+
try:
20+
for element in some_list:
21+
element += int(random.rand())
22+
element += len(some_list)
23+
except:
24+
print('A')
25+
26+
some_object = Class(True, r"raw string")
27+
print(some_object)
28+
29+
if __name__ == "__main__":
30+
main()

0 commit comments

Comments
 (0)