top of page
dark blue bubbles_edited_edited.jpg

Day 2 : The Creation of the user inputs

Hiya, its another day, another program sleigh! I recommend listening to Sleigh Ride by TLC. Anyways, I hope everyone is having no issue with their preparation of the upcoming holidays! With that said, let's discuss the music selecting chatbot.. I believe it should be named at a later date when we make it more sophisticated and advanced!


Moreover, it is day 2 of this amazing journey. There were a couple of errors in the "if" loop and return() function, alas I was able to get rid of the red flags without much struggle (for once).. However, I believe someone else could come up with an alernative solution, maybe even utilizing the return() function I had to comment out.


If you can find another way to complete the loop or fix the return(), please comment a solution. Help and collaboration is always needed and respected here. Moving on, we were able to accomplish these objectives in the program today:


  • Make and add multiple inputs

  • Learn how to assign the answer to inputs as variables

  • Utilize "if","else if", and "else" statements

  • How to use the "break" and "return()" functions

  • Create "while" loops

  • Practice to adding variables in the "print()" function


A lot was learned today, but there was also a lot done as well. Like Benjamin Franklin said, "Tell me and I forget, teach me and I may remember, involve me and I learn". By experimenting and testing, there will always be more to learn, and in turn, more to do! I cannot wait to see you tomorrow! Check the projects' page for the updated version to the code or click this underlined section.

 
 
 

Recent Posts

See All
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...

 
 
 
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