top of page
dark blue bubbles_edited_edited.jpg

Day 4: The Power of the While Loops

Hiya, as of today, my arduous midterm exams have been completed. Did I feel completely prepared? No, but I had SZA's new album to listen to, so I will be more than fine. On the subject of suffering, I have a robotics practice tomorrow, in which all my current programs are in Java. However, as for the music chatbot, I am quite glad for its potential to cascade and prosper in Python.


Today was another late night, so I will attempt to shorten up much of what was learned today. We were able to not only debug Day 3's errors but also learn how to create a function in Python! By learning this ability, it became possible for the chatbot to ask and add new songs and artists to the lists within the programs.


The while loop contributes greatly to the function of repeating questions if they were not answered correctly or if the question needs to be prompted more than once. However, it is late, so we will discuss and go on to Day 5 tomorrow. Alas, I did upload the updated pictures of the Day 3 and Day 4 coding, but I will now start inserting the pictures of the coding here from now on.





I will leave you readers with this quote:


"All that we see or seem is but a dream within a dream"

-- Edgar Allen Poe


Recent Posts

See All
Day 3: The Endless Exams..

Dearest gentle eader, I am currently scrambiling through my notes as well as my thoughts studying for these multitudes of death sentences...

 
 
 

Comments


bottom of page