Professional Documents
Culture Documents
S="LucknowistheCapitalofUP"#Statement1
print(S) #Statement2
S[4]='$’ #Statement3
S="Thankyou" #Statement4
S=S+"Thankyou" #Statement5
Q8. Rewrite the following code in python after removing all syntax error(s). Underline each
Correction done in the code.
30=n
For i in range(0,n)
IFi%4==0:
print(i*4)
Else:
print(i+4)
Q9. Identify the incorrect keyword name:
a) int b) float c) while d) true