0

Tell me the error in the following code snippets

a. X='l' y='love' z='my country' print (xy z) b.def square (x): return x*x m=square (3,3) print (m) c.def add (x,y): xty z=add (5,4) print (z)

5th Apr 2023, 9:30 AM
Sadanand Kabure
Sadanand Kabure - avatar
2 Antworten
+ 4
Is this homework? In question "a", there could be 2 or 3 errors depending the way it's actually written. "b" and "c" probably also have 2 errors.
5th Apr 2023, 9:34 AM
Ausgrindtube
Ausgrindtube - avatar
0
concatenation.. indentation.. keyword..
6th Apr 2023, 3:55 AM
Kaminorsabir Kamin
Kaminorsabir Kamin - avatar