Curtis Highschool Software Engineering Institute Reflections Part 3 ! | If Statements?

 What I've Learned :

After learning about other codes in the other blog, I learned something more new and unique, the what if statement. The what if statement allows more logic and decision making into our programs in which can create more complex programs. When outputted the code will output if the if statement is true. For an example :

When outputted the if command checks if the statement is true which is a > 4 and a = 5 and if so the print command  will be outputted  if its greater than 4  if otherwise it wouldn't.




 a = 5
if a > 4:
   print("This will print!")

Comments

Popular posts from this blog

Curtis Highschool Software Engineering Institute Reflections part 4! || Code Hs Tracy the Turtle!?