Skip to content

Commit 516a072

Browse files
authored
Create front_times.py
1 parent f26c135 commit 516a072

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Warmup-2.py/front_times.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def front_times(str, n):
2+
l = len(str)
3+
if l < 3 :
4+
return str * n
5+
result = str[:3]
6+
7+
return result * n
8+
9+

0 commit comments

Comments
 (0)