Highlight error, if any, and correct them i. def MyCar (i): print(i) if i print (Doing good!!) elif display (Work hard) ii. def Func2 (t+1) 1st=tuple (2) 1st[0]=4

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question

What is the error in this python codes.

  1. Highlight error,
  2. if any, and
  3. correct them 
Highlight error, if any, and correct them
i.
def MyCar (i):
print(i)
if i
print (Doing good!!)
elif
display (Work hard)
ii. def Func2 (t+1)
1st=tuple (2)
1st[0]=4
Transcribed Image Text:Highlight error, if any, and correct them i. def MyCar (i): print(i) if i print (Doing good!!) elif display (Work hard) ii. def Func2 (t+1) 1st=tuple (2) 1st[0]=4
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT