1.
What will be output produced by following code
Name 'ahana
Age 18
Print (name, "you are" , age, "now but“)
Print ("you will be", age+1, "next year")
Answers
Corrections:
Let me correct the codes a bit first:
____________________________
Name="ahana "
Age=18
print (Name, "you are" , Age, "now but“)
print ("you will be", Age+1, "next year")
____________________________
_You choose to can ignore after this_
grammar correction:
____________________________
Name="Ahana "
Age=18
print ("You are",Name, Age, "now, but“)
print ("you will be", Age+1, "next year.")
____________________________
Answer:
The output of 1st one(code correction) will be:
_____________________________
ahana you are 18 now but
you will be 19 next year
_____________________________
_You choose to can ignore after this_
The output of 2nd one(grammar correction) will be:
_____________________________
You are Ahana 18 now but,
you will be 19 next year.
_____________________________