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 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
The three syntax errors in the given code are as follows 1 The variable na... View full answer
Get step-by-step solutions from verified subject matter experts
