forked from gohashira/python3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (20 loc) · 626 Bytes
/
Copy pathmain.py
File metadata and controls
25 lines (20 loc) · 626 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
import re
f = open("input.txt")
content = f.read()
for testimonial in content.split("\n\n"):
text, by = testimonial.split("\n")
by = by.replace("[", "").replace("]", "")
[name, designation, company_name] = by.split(", ")
print("""
<div className="col-md-12">
<div className="card-testimonial text-center">
<p>
{}
</p>
<span className="client-detail text-white">
{}, {}, <span className="text-style-2 ">{}</span>
</span>
</div>
</div>
""".format(text, name, designation, company_name))
print()