Program is still a mess and giving me lots of errors....sadly after many, many tries.
Tried changing file.write to f.write...after reading some other solutions. But know I am wrong.
f = 'file'
def main():
statement
statement
statement
statement
statement
def write_html_file():
statement
statement
statement
statement
statement
def write_html_head():
statement
statement
statement
statement
def write_html_body():
statement
statement
statement
statement
statement
print('Your web page is done')
main()
The following is a sample of what the user should see:
Enter your name: First Last Describe yourself: I am trying to be a great python student...just not there yet...
>After user has entered info, program should create n HTML file, with the input, for a web page. Following is a sample HTML content for the above input.
<html>
<head>
</head>
<body>
<center>
<h1> Firs Last </h1>
</center>
<hr />
I am trying to be a great python student...just not
there yet...
<hr />
</body>
</html>