Computer Science, asked by midhunamurali2019, 9 months ago

FIND THE ERRORS IN THE CODE GIVEN BELOW
Def alpha (n, string = 'xyz', k=10):
return beta(string)
return n
def beta (string)
Return string == str(n)
print(alpha("Valentine's Day"))
print(beta(string = 'true'))
print(alpha(n = 5, "Good-bye"):))

Answers

Answered by yasasviattaluri
1

Answer:

Cant really help you on this

Explanation:

However You will appreciate my help. Download netbeans/ brackets or anyother coding applications for the specific type of coding language(Java, python etc) you are using and type these down thenthey will help you with your errors (trust me it works)

Answered by Anonymous
9

Answer:

According to python

-in Def d should be lowercase...

-after def statement there is no proper indentation

-in def beta colon (:) is missing..

-5th line of the code r in Return in uppercase it should be lowercase... also there is no proper indentation

-  return string == str(n) will show error

"NameError: name 'n' is not defined"

-in the last statement it should be

print(alpha("good-bye",n=5)) as positional argument is followed by keyword argument...

# HOPE IT HELPS YOU

PLEASE MARK BRAINLIEST

Similar questions