Hello @sriman,
see for the ques,
if None:
print(“Coding Blocks”)
It will print nothing as None evaluates as nothing or as false means non true value.
So if in case of none if False is there then also nothing will be printed and in case True will be there it get printed.
For the ques.,
a= "College"
b="didn't do college"
if a == "College":
print("i will attend all the lectures")
print("i will eat pizza")
else:
print("I will go for shopping")
print('and i will eat pizza')
print('and i will eat pizza')
This will give invalid syntax as if we see in case after the if statement
if a == "College":
print("i will attend all the lectures")
There is the line that is out of the if flow and after that line we used else condition that is not at all correct as because for else we also need if in the same flow but we broke the flow using the statement out of if block.
I hope you understand this. In case there will be any issue pls let me know I will try my best to help you out.
And if it is clear to you then pls mark it as resolve and feel free to provide the feedback.
Thanks 