LAB 4

Lab 4 involved python tutorials on codeacademy which began to get confusing and complex but it was nothing trail and error couldn’t solve. Comparators was a simple thing to learn because of my background knowledge with math all you had to learn was pythons way of expressing greater than, greater than or equal to, less than, less than or equal to and equal to. The Six camparators were used to decide whether an equation was true or false. Boolean operatorsĀ Ā needed knowledge of the equivalence of expressions such as true and false, false or false and many more mods of and, not and or expressions. Than we learned about conditional statements such as if this happens you will result to that if not we used the else statement and the elif which stands for otherwise. The last part of the tutorial was the pig latin exercise which mix matches words at the end by slicing the first couple letters. Pictures of the steps will be provided down below

Step 2 conditionals

Step 3 conditionals

Step 4

step 6

 

step 7

STep 9

Step 10

 

Step 13

Step 16

step 3 pig

Step 4 pig

step 8 pig

step 11

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *