Question: What's wrong with this code below: a = Hi if a: a ( There ) The code placed within the if
What's wrong with this code below:
aHi
ifa:
aThere
The code placed within the if statement will not execute.
Code within an if statement should not be indented.
if statements should check if something is True. Therefore, the code should read if a is True:
Nothing is wrong with the code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
