Skip to content

Commit 05bb303

Browse files
23 draft
1 parent 045c079 commit 05bb303

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

23.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import this
2+
3+
4+
def main():
5+
this_this = first_step()
6+
hint = "va gur snpr bs jung?"
7+
second_step(hint, this_this)
8+
9+
10+
def first_step():
11+
return this.s
12+
13+
14+
def second_step(hint, this_this):
15+
hint_ary = hint.split(" ")
16+
len_hint_ary = []
17+
for element in hint_ary:
18+
len_hint_ary.append(len(element))
19+
print(len_hint_ary)
20+
21+
lines_of_this = str(this_this).split("\n")
22+
print(lines_of_this)
23+
len_str_in_line = []
24+
for line in lines_of_this:
25+
str_in_line = line.split(" ")
26+
for str_ele in str_in_line:
27+
len_str_in_line.append(len(str_ele))
28+
print(len_str_in_line)
29+
len_str_in_line = []
30+
31+
32+
if __name__ == "__main__":
33+
main()

0 commit comments

Comments
 (0)