Day 2 : The Creation of the user inputs
- Cupid Sharpe
- Dec 18, 2024
- 1 min read
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.
Comments