L2P Daily Challenge June 19

Python:

This bit wasn’t too challenging for me. I watched a short video on if else statements and was set to finish.

To code this part I had a variable be the input of a prompt to see whether they wanted a circle or a triangle. After that I had an if else statement that checked if it was a circle. The else statement for that if has another if statement inside of it to see if its a triangle. If the initial input was either a circle or a triangle it was then asked for dimensions that would then output the final area of the shape.

My python code

 

 

 

Javascript

Finished the rock paper scissors game activity, also started with the regular javascript course.

Leave a Reply

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