When I do run it only shows me one line, what am I doing wrong? I have tried several times.
When I do run it only shows me one line, what am I doing wrong? I have tried several times.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
When I do run it only shows me one line, what am I doing wrong? I have tried several times.

Transcribed Image Text:## Programming Exercise 1.4
**Instructions**
### Figure 1-7: Python Script in an IDLE Window
1. In the Code Editor, enter the program from Figure 1-7 that computes the area of a rectangle.
2. Press the Run button, and correct any errors that occur.
3. Test the program with different inputs.
**Example of Program Input and Output:**
- **Input:**
- Enter the width: 33
- Enter the height: 22
- **Output:**
- The area is 726 square units.
### Code Explanation:
The provided program is a simple Python script intended to calculate the area of a rectangle.
```python
# Put your code here
width = int(input("Enter with width: 33"))
height = int(input("Enter the heighr: 22"))
area = width * height
print("The are is", area, "square units.")
```
- **Code Breakdown:**
- The script first prompts the user for the width and height of the rectangle.
- It then calculates the area by multiplying the width and height.
- Finally, it outputs the calculated area.
### Notes:
- Ensure to correct any syntax errors in the code and adjust the spelling errors in the prompts and print statement.
- Test the program with various inputs to verify its accuracy.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
Has anyone figured this out cause explanation makes no sense
Solution
Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education