Create a multiply function
def test(): test = [] i = 0 while i < 5: i += 1 match i: case 1: test.append("t") case 2: test.append("e") case 3: test.append("s") case 4: test.append("t") return ''.join(test)
- def test():
- test = []
- i = 0
- while i < 5:
- i += 1
if i == 1:test.append("t")elif i == 2:test.append("e")elif i == 3:test.append("s")elif i == 4:test.append("t")- match i:
- case 1:
- test.append("t")
- case 2:
- test.append("e")
- case 3:
- test.append("s")
- case 4:
- test.append("t")
- return ''.join(test)