-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintroductionPython.py
More file actions
47 lines (39 loc) · 1.04 KB
/
introductionPython.py
File metadata and controls
47 lines (39 loc) · 1.04 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
import matplotlib.pyplot as plt
import numpy as np
def printer():
string = input("Type string: ")
return print(string)
def linkedList(sizeList):
list = []
i = 0
#sizeList = int(input('Enter list size: '))
while i < sizeList:
list.append(input('Enter ' + str(i+1) + ' list value: '))
i += 1
return list
def matrix():
print('Matrix creation:\n')
matrix = []
m = int(input('Enter rows: \n'))
n = int(input('Enter column: \n'))
i = 0
j = 0
while i < m:
while j < n:
row = linkedList(n)
matrix.append(row)
j += 1
i += 1
return matrix
def simplePlot():
fig, ax = plt.subplots() # Create a figure containing a single Axes.
ax.plot([1, 2, 3, 4], [1, 4, 2, 3]) # Plot some data on the Axes.
plt.show() # Show the figure.
#def printer():
# return print(input("String: "))
def main():
#print(linkedList())
#print(matrix())
simplePlot()
if __name__ == "__main__":
main()