Day 1 of 100 Days of Code - Python/Java
The purpose of this is just to jot something down quickly to document my learning for today in regards to python.
What Did I Learn?
I learned that loops are programming operations or instructions that allow the computer or computing agent to execute a block of codes as many times as needed.
Additionally, I have learned that there are two types of loops. The first type of loop is the for loop, which is executed a certain number of times. Basically, it is executed when the number of steps are known.
The next type of loop is the while loop, which is a type of loop that is executed when the number of steps needed are unknown. This loop executes as long as a condition evaluates as true.
What I struggled with?
I understood the core concepts. The concepts that I struggled with or would like to explore further are the following: range() function, enumerate function(), algorithmic and computational problem-solving, and best programming practices of python.
One-Sentence Summary: I learned that a loop is an operation that is executed repeatedly either according to a set number of times or as long as a condition is true; additionally, there are two types of loop statements in python, which are while-loop and for-loop.