migration from cloud service
This commit is contained in:
15
week3/ex6.py
Normal file
15
week3/ex6.py
Normal file
@@ -0,0 +1,15 @@
|
||||
def main():
|
||||
list1 = ["Hello ", "take "]
|
||||
list2 = ["Dear", "Sir"]
|
||||
|
||||
mtx = [[0,0],[0,1],[1,0],[1,1]]
|
||||
|
||||
list3 = [f'{list1[mtx[i][0]]}{list2[mtx[i][1]]}' for i in range(len(mtx))]
|
||||
|
||||
print('==Exercise 6==')
|
||||
print(list3)
|
||||
print('==End Of Ex6==')
|
||||
return 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user