Skip to content

Commit a691f51

Browse files
authored
Create profile.py
1 parent fbdd9ae commit a691f51

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

profile.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Starting Out with Python (4th Edition).
2+
# Tony Gaddis.
3+
# Page 364.
4+
# Q 11. Web Page Generator.
5+
6+
name = input("Enter Your Name: ")
7+
describe = input("Describe Yourself: ")
8+
profile = open(r'profile.html', 'w')
9+
profile.write('<html>\n<head>\n</head>\n<body>\n\t<center>')
10+
profile.write('\n\t\t<h1>')
11+
profile.write(name)
12+
profile.write('<h1>\n\t<center>\n\t<hr />\n\t')
13+
profile.write(describe)
14+
profile.write('\n\t<hr />\n</body>\n</html>')

0 commit comments

Comments
 (0)