12 test ch-2
12 test ch-2
Q1. Find error in the following code(if any) and correct code by rewriting code
and underline the correction;‐
x= int(“Enter value of x:”)
for in range [0,10]:
if x=y print( x + y)
else: print( x‐y)
Q2. Rewrite the following program after finding and correcting syntactical errors
and underline it.
STRING=""WELCOME NOTE""
for S in range[0,7]:
print (STRING(S))