-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex.py
More file actions
35 lines (31 loc) · 687 Bytes
/
ex.py
File metadata and controls
35 lines (31 loc) · 687 Bytes
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
# # ex1
# list =[]
# for i in range(10):
# list.append(i)
# print(list)
#
# for i in range(len(list)):
# list[i] = list[i] * 10
# print(list)
# ex2
# list = ['a','b','c']
# list.reverse()
# print(list)
# ex3
# # ex4
# my_list = [12,65,54,39,102,339,221,50,70]
# result =[]
# for i in range(len(my_list)):
# if my_list[i] % 13 == 0:
# result.append(my_list[i])
# print(result)
# ex5
# f = open('input.txt','r')
# a = f.read()
# print(a)
list = [[1,2,3,4,5,6,7,8,9],[2,4,6,8,10,12,14,16,18]]
for i in range(len(list[0])):
for j in range(len(list[0])):
a=list[0][i]*list[1][j]
print(a, end=' ')
print('\n')