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
A program has a infinite while loop. How can you interrupt it?
MrRa [10]

Answer:

The <em>break</em> keyword is how you interrupt a while loop.

the syntax looks like this ↓

Python ↓

while <em>true</em>:

<em>break</em>

Java script ↓

while (<em>true</em>);

<em>break</em>

6 0
2 years ago
Por qué no es tan común el uso de energías mas amigables con el medio ambiente en el país donde vives?
Effectus [21]

Answer:

Explanation:

English:

All forms of electricity generation have an environmental impact on our air, water, and land, but it varies. Of the total energy consumed in the United States, about 40% is used to generate electricity, making electricity use an important part of each person’s environmental footprint.

Producing and using electricity more efficiently reduces both the amount of fuel needed to generate electricity and the number of greenhouse gases and other air pollution emitted as a result. Electricity from renewable resources such as solar, geothermal, and wind generally does not contribute to climate change or local air pollution since no fuels are combusted.

The fuel mix for U.S. electricity generation

The chart below shows that most of the electricity in the United States is generated using fossil fuels such as coal and natural gas. A small but growing percentage is generated using renewable resources such as solar and wind.

Spanish:

Todas las formas de generación de electricidad tienen un impacto ambiental en nuestro aire, agua y tierra, pero varía. Del total de energía consumida en los Estados Unidos, alrededor del 40% se usa para generar electricidad, lo que hace que el uso de electricidad sea una parte importante de la huella ambiental de cada persona.

Producir y usar electricidad de manera más eficiente reduce tanto la cantidad de combustible necesario para generar electricidad como la cantidad de gases de efecto invernadero y otra contaminación del aire emitida como resultado. La electricidad de recursos renovables como la energía solar, geotérmica y eólica generalmente no contribuye al cambio climático ni a la contaminación del aire local, ya que no se queman combustibles.

Combustible para la generación de electricidad en EE. UU.

El cuadro a continuación muestra que la mayor parte de la electricidad en los Estados Unidos se genera utilizando combustibles fósiles como el carbón y el gas natural. Un porcentaje pequeño pero creciente se genera utilizando recursos renovables como la solar y la eólica.

5 0
3 years ago
1. _____ are used to clarify code, but are not interpreted by the interpreter as commands. (1 point)
mariarad [96]

Answer:

1. D Comments

2. B False

3. C Logical Expression

8 0
3 years ago
Read 2 more answers
What is one way interpreted programming languages differ from compiled programming languages? (3 points)
Allisa [31]

Answer:b

Explanation:

3 0
3 years ago
What type of software controls the hardware of a computer? Desktop publishing software Spreadsheet applications Groupware applic
Hatshy [7]
It's most likely the Operating System Applications
4 0
3 years ago
Other questions:
  • Rebecca received the following e-mail from her boss: I NEED ALL EMPLOYEES TO WORK LATE ON SATURDAY. NO EXCEPTIONS! What is the m
    13·2 answers
  • Online banking tools allow you to pay bills from your computer. <br> a. True<br> b. False
    5·2 answers
  • A digital designer might do computer animation or video games true or false
    13·2 answers
  • A lot of computations involve processing a string one character at a time. Often they start
    14·1 answer
  • I need help with this!!! Are headphones, radios, dishwashers, and remote controls considered Computers? Do any of them store dat
    13·1 answer
  • Alicia uses a software application to store the names, email addresses, and phone numbers of her friends in alphabetical order. 
    11·1 answer
  • State the functions of all the parts of the computer​
    14·1 answer
  • What is added to brining liquid to add flavour​
    5·1 answer
  • Write a function solution that given an array a of n integers (between -100 and 100), returns the sign (-1,0,1) of product of al
    12·1 answer
  • For a web application we associate a web server, for a mobile application we associate a mobile server. for a decentralized appl
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!