Question: PARTICIPATION ACTIVITY 1.4.2: Common syntax errors. Treat the following lines of code as a continuous program. Find and click on the three syntax errors.

PARTICIPATION ACTIVITY 1.4.2: Common syntax errors. Treat the following lines of code as a continuous

PARTICIPATION ACTIVITY 1.4.2: Common syntax errors. Treat the following lines of code as a continuous program. Find and click on the three syntax errors. 1) triangle_base= 0 # Triangle base (cm) triangle_height = 0 # Triangle height (cm) triangle_area = 0 #Triangle area (cm**2) print('Enter triangle base (cm):) triangle_base= int(input() 2) print('Enter triangle height (cm): ') triangle height = int(input()) # Calculate triangle area triangle_area = (triangle_base * triangle_height) / 2 Print out the triangle base, height, and area 3) print('Triangle area = (', end='') print(triangle_base, end='') K

Step by Step Solution

3.32 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The three syntax errors in the given code are as follows 1 The variable na... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!