1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
SOVA2 [1]
3 years ago
15

Personal Web Page Generator Write a program that asks the user for his or her name, then asks the user to enter a sentence that

describes himself or herself. Here is an example of the program's screens: Enter your name: Describe yourself: Once the user has entered the requested input, the program should create an HTML file, containing the input, for a simple Web page.
Computers and Technology
1 answer:
horsena [70]3 years ago
3 0

Answer:

// Python code

username=input("Type your name: ")

desc=input("Describe yourself: ")

f=open('profile.html','w')

html="<html>\n"+\

     "<head>\n"+\

     "</head>\n"+\

     "<body>\n"+\

     "<center>\n"+\

     "<h1>"+username+"</h1>\n"+\

     "</center>\n"+\

     "<hr/>\n"+\

     desc+"\n"\

     "<hr/>\n"+\

     "</body>\n"+\

     "</html>\n"

f.write(html)

f.close()

Code for profile.html file

<html>

<head>

</head>

<body>

<center>

<h1>Jon Doe</h1>

</center>

<hr/>

A software engineer working at a startup.

<hr/>

</body>

</html>

Explanation:

  • Get the name and description of user  as an input.
  • Write HTML content by opening the file.
  • Create and develop the essential HTML syntax.
  • Write the information into the HTML file and finally close the file.
  • Write the HTML code in the profile.html file.
You might be interested in
░░░░░░░░██████████████████
ELEN [110]

OMG YUHHH

( Also I need one more brainliset until I get expert )

7 0
3 years ago
What type of system enables computer data to be stored in multiple locations and shared with multiple users simultaneously?
Alexandra [31]

Answer:

A

Explanation:

3 0
3 years ago
What is a way that i can connect my Xbox360 to my computer?
Vladimir79 [104]
Its possible if you get the right cords like double ended usb cord and also it depends on what kind of model you have message me and ill tell you
8 0
3 years ago
Read 2 more answers
What are the two main advantages to a well-designed relational database over other types? 
melomori [17]

d) flexibility and data protection

8 0
3 years ago
Brianna and jack work in the same position for the same company. they also have similar training and work experience. yet briann
saul85 [17]
Wage Discrimination..
4 0
4 years ago
Other questions:
  • What would be the desired output of a home security system?
    6·1 answer
  • A person who has a been exposed to technology at a young age is?
    8·1 answer
  • How to write a program in java that finds the max number of an array of integers?
    6·1 answer
  • 2) List three (3) negative impact of Technology on society
    14·1 answer
  • What is common for all machines​
    15·2 answers
  • Computer programming 5
    10·1 answer
  • In terms of their eligibility for legal protection, how do ideas differ from song lyrics?
    15·2 answers
  • The Synonyms submenu offers a list of synonyms for a word. Is it always a good idea to use whatever synonyms are presented on th
    15·1 answer
  • For quantitative data (e.g. the number of milligrams of a drug) coding your data involves?
    15·1 answer
  • confidentiality ensures that only those with the rights and privileges to access information are able to do so.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!